我也是node的初學者。我注意到 exec 和 spawn 返回 ChildProcess 目的。醫生說 spawn 流 stdout 而 exec 緩衝它,所以我嘗試了這個: cp.stdout.on('data', .
確定! 回上一頁