项目中的异步和同步

//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);
}
});

posted @ 2016-08-10 16:17  caozengling  阅读(247)  评论(0编辑  收藏  举报