add: circular menu alpha and limited in screen
This commit is contained in:
8
app/src/main/assets/sample/HTTP网络请求/文件下载.js
Normal file
8
app/src/main/assets/sample/HTTP网络请求/文件下载.js
Normal file
@@ -0,0 +1,8 @@
|
||||
var url = "http://www.autojs.org/assets/uploads/profile/3-profileavatar.png";
|
||||
var res = http.get(url);
|
||||
if(res.statusCode != 200){
|
||||
toast("请求失败");
|
||||
}
|
||||
files.writeBytes("/sdcard/1.png", res.body.bytes());
|
||||
toast("下载成功");
|
||||
app.viewFile("/sdcard/1.png");
|
||||
Reference in New Issue
Block a user