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

料青山看我應(yīng)如是
TA貢獻(xiàn)1772條經(jīng)驗(yàn) 獲得超8個(gè)贊
可以。
用 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)注
- 1692 瀏覽
添加回答
舉報(bào)
0/150
提交
取消