使用CountAPI统计使用次数
By
the100s
at 2021-10-16 • 0人收藏 • 1087人看过
//HTML转文本
//mod by aardio 范例:HTML转文本
import console;
import inet.http;
//namespace是随意定义的,只要重复,不需要前往countapi进行注册。
var html = inet.http().get("https://api.countapi.xyz/hit/namespace/key")
console.varDump(html)
tab=web.json.parse(html)
console.varDump(tab)
console.log( tab["value"] )
html=""
html=inet.http().get("https://api.countapi.xyz/hit/myappname_by_the100s5/key")
tab=web.json.parse(html)
console.log("“我的软件使用计数”:",tab["value"] )
console.pause();
1 个回复 | 最后更新于 2021-10-17
登录后方可回帖
好的