部分js代码
var $ town=$ (' # demo3select [ name=' town ' ] );
vartownformat=function{
$town.hide ().empty );
if (info [ ' code ' ]4info [ ' code ' ] 7e5) /是“区”,不是港澳台地区吗
$.Ajax({
URL : ' http://passer-by.com/data _ location/town/' info [ ' code ' ] '.JSON ',
dataType:'json ',
success :功能(town ) {
$town.show (;
for(Iintown ) {
$town.append('town[I] ' );
}
}
);
}
(;
$('#demo3' ).citys({ (
province: '福建',
city: '厦门',
area: '思明',
onchange :功能(info ) {
town format (信息格式;
}
、函数(API ) )。
var info=api.getInfo (;
town format (信息格式;
);