add: apk builder plugin support; fix: inrt AutoJs.ensureServiceEnabled
This commit is contained in:
9
app/src/main/assets/sample/HTTP网络请求/获取网页.js
Normal file
9
app/src/main/assets/sample/HTTP网络请求/获取网页.js
Normal file
@@ -0,0 +1,9 @@
|
||||
var url = "www.baidu.com";
|
||||
var res = http.get(url);
|
||||
if(res.statusCode == 200){
|
||||
toast("请求成功");
|
||||
console.show();
|
||||
log(res.body.string());
|
||||
}else{
|
||||
toast("请求失败:" + res.statusMessage);
|
||||
}
|
||||
Reference in New Issue
Block a user