nodejs可以打開任意非系統(tǒng)服務(wù)的exe嗎
1 回答

MMTTMM
TA貢獻(xiàn)1869條經(jīng)驗 獲得超4個贊
可以。
用 Node.js 自帶的 child_process 模塊就行,或者用 execa 之類的庫也行。
1 2 3 4 5 6 7 | var exec = require('child_process').execFile;var fun =function(){ console.log("fun() start"); exec('HelloJithin.exe', function(err, data) { console.log(err) console.log(data.toString()); }); } fun(); |
- 1 回答
- 0 關(guān)注
- 560 瀏覽
添加回答
舉報
0/150
提交
取消