|
我是自己的Java给的路径,但是请求不到数据提示
Model.prototype.postDataCustomRefresh = function(event){
var postData = event.source;
$.ajax({
type: "GET",
url: "http://45.127.99.213:8080/hansmesjiguang/api/loadPage.action",
dataType: 'json',
async: true,
cache: false,
success: function(data){
postData.loadData(data);//将返回的数据加载到data组件
},
error: function(){
throw justep.Error.create("加载数据失败");
}
});
};
运行之后提示加载数据失败,我该怎么做啊,Java返回的是json,急用,
|
|