如下:
$.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);
});
2021-11-28 15:40:14
如下:
$.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);
});