2012-07-18 59 views

回答

7

以下是節點中分支和子進程的node.js文檔。

http://nodejs.org/api/child_process.html

看起來你可能能夠做這樣的事。

var child = require('child_process').fork('child.js'); 
child.on("message", function(){}); 

而你在這種情況下需要child.js文件。

相關問題