jquery $.getJSON同步
$.ajax({ url: '/xst/City/loadCityByProvinceId/'+provinceId, type: 'GET', dataType: 'json', async:false, success: function(data){ for(var i = 0;i<data.length;i++){ $("#CityId").append("<option value="+data[i].id+" >"+data[i].cityField+"</option>"); } } }); $.ajaxSettings.async = false;
相关推荐
newthon 2019-12-07
chinewwen 2011-08-07
我只是个程序员 2014-06-30
Anything 2016-01-04
RanQi0 2014-05-28
82473264 2011-09-26
wujiajax 2017-10-02
yigeng 2017-10-02
sunnygirls 2017-10-02
Dolphinsz 2017-01-03
只争朝夕 2016-11-21
86281940 2016-08-13
青盲 2016-07-21
yigeng 2016-07-11
Dolphinsz 2016-04-09
张树刚 2016-01-04