main.js
1006 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
* 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);
});
});