自娱:通过接口查询API

祝大家玩的愉快

function demo() {

console.clear();

let r = new APILink();

r.params = ["WPS 基础接口", "表格 API 参考", "Worksheet", "objDetail.json"];

let detail = r.responseData.properties[30];

let name = detail.name;

let code = detail.examples;

let description = detail.description;

let summary = detail.summary;

console.log(name);

console.log(r.extractTextBlocks(summary));

console.log(r.extractTextBlocks(description));

console.log(r.extractCodeBlocks(code));

}

湖南省
浏览 262
1
3
分享
3 +1
2
1 +1
全部评论 2
 
WPS支持XMLHttpRequests,而且支持异步,试试导入Axios的方法能不能用
· 广东省
回复
 
学习
· 河南省
回复