Jquery $.getJSON()设置同步

如下:

$.ajaxSettings.async = false;
$.getJSON('/AjaxSwitchDynamicInfo/GetPortUsedCount.cspx', {
switchId: id,
portName: obj[i].name
}, function (objj) {
uphtml += getImgHtml(firChar, obj[i], "up", len, i, mknum, obj[i].num, objj);
});

 

posted @ 2015-02-28 09:44  Seaurl  阅读(2026)  评论(0编辑  收藏  举报