ApiCloud中Rest对象的一些使用说明
api.ajax({ url:getDataUrl() + ‘sets‘,//"relational_tree", method:‘GET‘, headers:{ "Content-Type":"application/json", "X-APICloud-AppId":getAppId(),//要查询的应用的ID "X-APICloud-AppKey":getAppKeyInSha1()//对应应用的Sha计算值 }, dataType:‘json‘ }, function(ret,err){ if (ret){ alert("正确:\n"+JSON.stringify(ret) ) ; }else{ alert("失败:\n"+JSON.stringify(err) ) ; } });
,温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/66746.html