l***@sina.com
l***@sina.com
  • 发布:2018-05-04 17:33
  • 更新:2018-05-10 18:44
  • 阅读:1225

mui。ajax 访问后台 ready

分类:MUI
mui

(function($,doc){
$.ready(function(){
$.ajax{

    }  
});  

}(mui,document));各位大侠 这里 的 s.ajax 不执行是怎么回事?

2018-05-04 17:33 负责人:无 分享
已邀请:
LLgg

LLgg

    mui.init();  
    mui.ajax('www.xxxxxxxx.com',{  
        dataType:'json',//服务器返回数据格式  
        type:'GET',//请求类型  
        timeout:15000,//超时时间  
        async:true,  
        cache: false,  //缓存  
        success:function(data){  
            console.log(data);//输出成功内容  
        },  
        error:function(xhr,type,errorThrown){  
            console.log("error!");  
        }  
    });
  • l***@sina.com (作者)

    去掉mui.ready(function(){})就可以,这是为什么呢?

    2018-05-05 09:18

wen如故i

wen如故i

自己看看下载 hb项目,一般我都写plusReady

专注写bug

专注写bug - 不积跬步,无以至千里

首先讲究页面布局加载完成后,再进行ajax服务器通信;

该问题目前已经被锁定, 无法添加新回复