使用系统默认应用程序管理文件或URL
const {shell} = require('electron')
shell.openExternal('https://github.com')方法
shell.showItemInFolder(fullPath)
shell.showItemInFolder(fullPath)shell.openItem(fullPath)
shell.openItem(fullPath)shell.openExternal(url[, options, call,back])
shell.openExternal(url[, options, call,back])shell.moveItemToTrash(fullPath)
shell.moveItemToTrash(fullPath)shell.beep()
shell.beep()shell.writeShortcutLink(shortcutPath[, operation], options) Windows
shell.writeShortcutLink(shortcutPath[, operation], options) Windowsshell.readShortcutLink(shortcutPath) Windows
shell.readShortcutLink(shortcutPath) WindowsLast updated