项目中的异步和同步

//var rtJson = getJsonRs(url);
jQuery.post(url,function(res) {
var rtJson = eval("(" + res + ")");
if (rtJson.rtState == "0") {
strXML = rtJson.rtData.data;
if(mapType == "1"){
choseStr = "Pie3D.swf";
}
else if(mapType == "2"){
choseStr = "Column3D.swf";
}

} else {
alert(rtJson.rtMsrg);
}
});

原文地址:https://www.cnblogs.com/caozengling/p/5757239.html