Worker的代码不能放在分包中
name: 'worker' , success(res) { wx.createWorker( 'worker/index.js' ) }, fail(res) { } }) |
game.json { "subpackages" :{name: "worker" , "root" : "worker/index.js" }, "workers" : "worker" } |