1、确保开启本地服务器
2、js 代码如下:
点击网页上的某一个部位, 然后执行以下函数调取exe:
function attribute(){
console.log("点击进入exe");
$.post('http://localhost:8080/clam/home/PostExecExe.do?path=D:\CartoonEditor&name=start.bat',{},function(){})
}
3、 需要注意的点:

4、start.bat 文件里的内容:


1、确保开启本地服务器
2、js 代码如下:
点击网页上的某一个部位, 然后执行以下函数调取exe:
function attribute(){
console.log("点击进入exe");
$.post('http://localhost:8080/clam/home/PostExecExe.do?path=D:\CartoonEditor&name=start.bat',{},function(){})
}
3、 需要注意的点:
4、start.bat 文件里的内容:
本文标题:网页调取本机exe文件,并运行
本文链接:https://www.haomeiwen.com/subject/lhdjdftx.html
网友评论