jjzjj

workersPointer

全部标签

javascript - 是否存在 Firefox Workers 限制?

我正在尝试创建webWorker并循环向它们发送消息:array.forEach(function(data){this.createWorker();this.workers[this.workersPointer].postMessage({task:'someTask',data:string});},this);创建worker函数:createWorker:function(){this.workersPointer++;varworker=this.workers[this.workersPointer]=newWorker('Worker.js'),storage=thi