把上面CMD的路径换为QQ的路径即可,如在我的电脑上打开QQ就是
<button onclick="wsh = new ActiveXObject('WScript.Shell')wsh.Run('file:///D:/Program%20Files/Tencent/qq/bin/qq.exe')">这是打开qq的 </button>
把上面CMD的路径换为QQ的路径即可,如在我的电脑上打开QQ就是
<button onclick="wsh = new ActiveXObject('WScript.Shell')wsh.Run('file:///D:/Program%20Files/Tencent/qq/bin/qq.exe')">这是打开qq的 </button>