通过打开本地空白文件的方式从而打开Office办公软件
const shell = require(‘electron‘).shell; const path = require(‘path‘); shell.openItem(path.join(__dirname, ‘new.docx‘));
Electron 调用系统Office软件
原文:http://www.cnblogs.com/yshyee/p/6857564.html