Apicloud ajax 请求接口

 

api.ajax({
            url:'http://192.168.2.4/home/index/index',
            method:'get',
            timeout:5,
            dataType:'json',
            returnAll:false
        },function(ret,err){
            alert(JSON.stringify(ret));
        });

 

posted @ 2019-05-07 17:38  开源  阅读(584)  评论(0)    收藏  举报