<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Hello World!</title> </head> <body> <h1>Hello World!</h1> <!-- All of the Node.js APIs are available in this renderer process. --> We are using node <script>document.write(process.versions.node)</script>, Chromium <script>document.write(process.versions.chrome)</script>, and Electron <script>document.write(process.versions.electron)</script>. <button onclick="">打开word</button> </body> </html>
页面点击按钮打开应用文件夹中的test.doc文件,用默认应用打开
shell.openItem(fullPath)
路径总是不对 我该怎么写路径
用相对路径试试。但是我没看懂你这个代码能干嘛
一周热门 更多>