zhangchengwen 发布的帖子
var url = "http://api.mairui.club/zs/kdj/sh000300/dn/f15f12792427f5ad42";
//http://api.mairui.club/zs/kdj/指数代码(如sh000001)/分时级别/您的licence
//http://api.mairui.club/jj/lsma/基金代码/分时级别/您的licence
var res = http.get(url);
if(res.statusCode == 200){
toast("请求成功");
console.show();
log(res.body.string());
print("OKK")
}else{
toast("请求失败:" + res.statusMessage);
}
执行结果:
17:25:24.672/V: 开始运行[[remote]KDJ.js]
17:25:26.057/D: {"t":"2023-10-13","k":"30.13","d":"33.11","j":"24.17"}
17:25:26.059/D: OKK
17:25:26.061/V:
[ [remote]KDJ.js ]运行结束,用时1.388000秒
我想输出"j":"24.17"这个j的值咋写