如下:
$.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); });
如下:
$.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); });
转载于:https://www.cnblogs.com/zhangwei595806165/p/4304728.html