Node.js 没有内置的 API 用于打开文件夹对话框。可以使用第三方库,例如 "file-dialog" 库。使用方法:
此外,还有其他类似的库可供选择,例如 "electron-file-dialog"。