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