|
发表于 2017-7-6 23:16:30
|
显示全部楼层
我的情况和你类似
我的Ajax是这样写的- var me = this;
- var ajaxCallUrl = "http://192.168.1.110:3000/test/";
- $.ajax({
- cache: true,
- type: "POST",
- url:ajaxCallUrl,
- data:{},
- async: false,
- error: function(request) {
- alert("网络错误!");
- },
- success: function(data) {
- if(JSON.parse(data).success){
- me.comp("username").set({value:JSON.parse(data).username});
- }else{
- justep.Util.hint("网络问题!");
- }
- }
- });
复制代码
|
|