就是啟動命令傳送參數,然後建立 stdin 、 stdout 、 stderr 。 這邊藉由pwd 來輸出目前目錄作為示範。 const { spawn } = require('child_process'); const pwd = ...
確定! 回上一頁