项目中的异步和同步
//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);
}
});
博主 Email:32595667@139.com QQ:32595667