它與 exec 的區別在於不啓動獨立的 shell ,因此相比更加輕量級。 fork 函數用於直接運行Node.js模塊,例如 fork('./child.js') ,相當於 spawn ...
確定! 回上一頁