electron 打开本地文件?
<!DOCTYPE html> <html> <h<爱尬聊_百科词条>ead> <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)
路径总是不对我该怎么写路径
顾西凉去 14小时前
用相对路径试试。但是我没看懂你这个代码能干嘛