[]socket 注册message出错

PS D:\workspace\LayaAir\6> node ./bin/h5/LayaSample.max.js
D:\workspace\LayaAir\6\bin\h5\LayaSample.max.js:7277
                Browser._window.addEventListener('message',function(e){
                                ^
TypeError: Browser._window.addEventListener is not a function
    at Function.Browser.__init__ (D:\workspace\LayaAir\6\bin\h5\LayaSample.max.js:7277:19)
    at Object.Laya.init (D:\workspace\LayaAir\6\bin\h5\LayaSample.max.js:373:11)
    at new LayaSample (D:\workspace\LayaAir\6\bin\h5\LayaSample.max.js:23464:8)
    at D:\workspace\LayaAir\6\bin\h5\LayaSample.max.js:27828:2
    at Object.<anonymous> (D:\workspace\LayaAir\6\bin\h5\LayaSample.max.js:27830:3)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
已邀请:

Aar0n

赞同来自:

有照着文档做吗?

要回复问题请先

商务合作
商务合作