gistfile1.txt function showProvinceList() { $.ajax({ url : root + "m/province/findProvinceEQStatusPage", dataType : "json", data : { pageSize : 100 }, type : "post", success : function(data) { if ($.isArray(data.object.content)) { $("#selec
function showProvinceList() { $.ajax({ url : root + "m/province/findProvinceEQStatusPage", dataType : "json", data : { pageSize : 100 }, type : "post", success : function(data) { if ($.isArray(data.object.content)) { $("#selectProvince").empty(); $("#selectProvince").append(''); $.each(data.object.content, function(key, value) { $("#selectProvince").append( ''); }); } //console.log(data); } }); }省份所对应得城市
function findCity() { $.ajax({ url : root + "m/city/findCityEQStatusPage", dataType : "json", data : { provinceId : $("#selectProvince").val() }, type : "post", success : function(data) { if ($.isArray(data.object)) { $("#selectCity").empty(); $("#selectCity").append(''); $.each(data.object, function(key, value) { $("#selectCity").append( ''); }); } } }); }