main.js 1006 Bytes
/**
 * founder : zzf
 * Creation time :  2015/3/18
 * note :
 * role :
 */

define(function( require, exports, module ) {
    require('regionbox');
//    region.setParam({
//        floor : 2
//    });
    var ml = region.aRegion("#ceshi-1");
    setTimeout(function(){
        ml.update();
    }, 3000);
    region.start();




    var kkk = true;
    $(".click-ceshi").click(function(){
        if(kkk){
            $("#ceshi-1").attr("setUrl", "http://user.nong12.com/api/city/getParentCityJsonpList.do?cityId=1431304")
            kkk = false;
        }else{
            $("#ceshi-1").attr("setUrl", "http://user.nong12.com/api/city/getParentCityJsonpList.do?cityId=1440802")
            kkk = true;
        };
        ml.update();
    });

    region.run(
      [3, 1], 
      [
        function(obj){
          console.log(4, obj)
        },
        function(obj){
          console.log(1, obj)
        }
      ]
    );

    region.clicksure(function(region){
      console.log(region);
    });

});