ApiCloud数据Url请求

使用Url,在这里Ajax是可以跨域的!用$.ajax或api.ajax都可以

api.ajax({
url:"http://www.baidu.com",
method:'GET',
dataType:'text'
}, function(ret,err){

  if(ret){
    alert(JSON.stringify(ret) ) ;

  }
});

 

posted @ 2015-10-08 21:33  冰雪一舟  阅读(1207)  评论(1编辑  收藏  举报