...
This commit is contained in:
1 parent
e7d9f750e1
commit
05b4b20a40
1 file changed
+14
-4
+14
-4
@@ -1771,16 +1771,26 @@ game.import("extension", function (lib, game, ui, get, ai, _status) {
|
|||||||
|
|
||||||
|
|
||||||
line2: {
|
line2: {
|
||||||
name: "--------------------------",
|
name: "-------------------\
|
||||||
|
<br>URL :<input id='miao_url_input' style='width:151px'> \
|
||||||
|
<br>下载至扩展:<input id='miao_extName_input' value='喵喵喵喵' style='width:100px'> \
|
||||||
|
<br>文件名:<input id='miao_fileName_input' style='width:128px'>",//1字14px
|
||||||
clear: true
|
clear: true
|
||||||
},
|
},
|
||||||
|
|
||||||
download_test: {
|
download_test: {
|
||||||
name: "<button>下载测试</button>",
|
name: "<button>下载</button>",
|
||||||
intro: "测试下载功能",
|
intro: "下载功能",
|
||||||
clear: true,
|
clear: true,
|
||||||
onclick: async function () {
|
onclick: async function () {
|
||||||
miao_download("https://raw.githubusercontent.com/Zioywishing/Noname_Miaoxtension/main/zioy_purangsigai.jpg",'喵喵配件','zioy_purangsigai.jpg')
|
var url = document.querySelector('#miao_url_input').value
|
||||||
|
var extName = document.querySelector('#miao_extName_input').value
|
||||||
|
var fileName = document.querySelector('#miao_fileName_input').value
|
||||||
|
// alert(url+'\n'+extName+'\n'+fileName)
|
||||||
|
if(url == '' || extName == '' || fileName == ''){
|
||||||
|
return alert('存在必填未填写')
|
||||||
|
}
|
||||||
|
miao_download(url,extName, fileName)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// getFastestUpdateURLMiao4:{
|
// getFastestUpdateURLMiao4:{
|
||||||
|
|||||||
Reference in new issue
Block a user