html中使用javascript调用本地程序(exe、doc等)实现代码_javascript技巧
来源:动视网
责编:小采
时间:2020-11-27 21:09:11
html中使用javascript调用本地程序(exe、doc等)实现代码_javascript技巧
html中使用javascript调用本地程序(exe、doc等)实现代码_javascript技巧:第一次用到这个,做个记录,在html页面中调用本地程序: 代码如下: function Run(strPath) { var objShell = new ActiveXObject(wscript.shell); objShell.exec(strPath); objShell = null; } 请输入要运行
导读html中使用javascript调用本地程序(exe、doc等)实现代码_javascript技巧:第一次用到这个,做个记录,在html页面中调用本地程序: 代码如下: function Run(strPath) { var objShell = new ActiveXObject(wscript.shell); objShell.exec(strPath); objShell = null; } 请输入要运行

第一次用到这个,做个记录,在html页面中调用本地程序:
代码如下:
function Run(strPath)
{
var objShell = new ActiveXObject("wscript.shell");
objShell.exec(strPath);
objShell = null;
}
script>
请输入要运行的程序路径:
html中使用javascript调用本地程序(exe、doc等)实现代码_javascript技巧
html中使用javascript调用本地程序(exe、doc等)实现代码_javascript技巧:第一次用到这个,做个记录,在html页面中调用本地程序: 代码如下: function Run(strPath) { var objShell = new ActiveXObject(wscript.shell); objShell.exec(strPath); objShell = null; } 请输入要运行