G0574's Archiver

弯月圆刀 发表于 2008-9-26 10:17

gear workerpool之间传递参数

workerpool之间可以传递:

message - The message to send. A message can be a boolean, string, number, array, object, or Blob. Array and object messages can contain booleans, strings, numbers, nulls, Blobs, or references to other arrays and objects which also follow these rules.

但是不能传递function,也因为这个原因(我估计)不能传递constructor函数构造的对象。比如:new Date()。

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.