JS 怎么调用系统命令
答案:1 悬赏:20 手机版
解决时间 2021-03-21 21:21
- 提问者网友:回忆在搜索
- 2021-03-21 02:01
JS 怎么调用系统命令
最佳答案
- 五星知识达人网友:痴妹与他
- 2021-03-21 02:21
<script language=Javascript>
function test1(){
var wsh = new ActiveXObject('WSCript.shell');
wsh.run('notepad.exe');
}
</script>
<script language=vbscript>
Function test2()
Dim wshShell
set wshShell =createObject("WSCript.shell")
wshShell.run "notepad.exe"
end Function
</script>
<input type=button value=按钮1 onclick=test1()><input type=button value=按钮2 onclick=test2()>
function test1(){
var wsh = new ActiveXObject('WSCript.shell');
wsh.run('notepad.exe');
}
</script>
<script language=vbscript>
Function test2()
Dim wshShell
set wshShell =createObject("WSCript.shell")
wshShell.run "notepad.exe"
end Function
</script>
<input type=button value=按钮1 onclick=test1()><input type=button value=按钮2 onclick=test2()>
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯