function getCountry(code){
$.ajax({
url : './json/third-level-address.json',
type : 'get',
async: false,
success : function(data) {
if(data=="error"){
alert("系统错误");
return;
}
var country = new Array();
var children = new Array();
var countryCode=new Array();
$.each(data,function(i,tmp){
countryCode.push(tmp.code);
country.push(tmp.name);
children.push(tmp.children);
});
$('#country').show().html(country);
// console.log(children);
var options = "";
for(var i in data){
if(code && code == data[i].code ){
options += "";
}else{
options += "";
}
$("#province").html(options);
// console.log(data[i].code);
}
},
error : function(data) {
html = "";
}
})
}
function showCity(){
}