日期:2014-05-16 浏览次数:20337 次
//Make sure the data can be read completely before the view is shown
$.ajaxSetup({
async: false
});
log("Start making markers...");
$.get("MapCompanies1.xml", {}, function (data) {
//可是进不到这里来,下面的log不出现。
log("Reading and making contents of markers...");
});
}, 'xml');
$.ajaxSetup({
async: true
});
$.get("MapCompanies1.xml", {}, function (data) {
//可是进不到这里来,下面的log不出现。
log("Reading and making contents of markers...");
///////////////// });////////这里多了
}, 'xml');