请你看一下这段代码,让我知道为什么会这样做
未定义点
在processMap()
上?
var mapPoints = function(model, viewSetting) {
ajax(_workSpace.rootPath + 'Map/MapPoints', { }, function (result) {
console.log('headMapOrders callback ', result);
if (result.ReturnCode == 0) {
UIPopup.showOk(result.ReturnMessage, resources.app_error);
} else {}
return;
});
}
function processMap()
{
var thepoints = mapPoints();
console.log("The Points", thepoints);
}
processMap();