上个问题已经解决了
进入页面先用 var is_chrome = /chrome/.test(navigator.userAgent.toLowerCase()); 判断是不是谷歌浏览器;
如果不是,则调用var objShell = new ActiveXObject("WScript.Shell"); 这是只有IE才有的
打开注册表;
使用命令打开objShell.Run打开cmd 运行chrome.exe
展开
1