nodeJS笔记子进程.docVIP

  • 21
  • 0
  • 约2万字
  • 约 27页
  • 2015-08-17 发布于安徽
  • 举报
子进程 类: ChildProcess 事件: error 事件: exit 事件: close 事件: disconnect 事件: message child.stdin child.stdout child.stderr child.pid child.kill([signal]) child.send(message, [sendHandle]) 例子: 发送一个server对象 示例: 发送socket对象 child.disconnect() child_process.spawn(command, [args], [options]) child_process.exec(command, [options], callback) child_process.execFile(file, args, options, callback) child_process.fork(modulePath, [args], [options]) 子进程# 稳定度: 3 - 稳定 Node 通过?child_process?模块提供了类似?popen(3)?的处理三向数据流(stdin/stdout/stderr)的功能。 它能够以完全非阻塞的方式与子进程的?stdin、stdout?和?stderr?以流式传递数据。(请注意,某些程序在内部使用行缓冲 I/O。这不会影响到 no

文档评论(0)

1亿VIP精品文档

相关文档