[]用webpack打包laya会出错
代码如下
require('./libs/laya.core.js');
require('./libs/laya.html.js');
执行时,会报出错误
Uncaught TypeError: Cannot assign to read only property 'document' of object '#<Window>'
出错的句子是
function(global) {'use strict';var window=window||global;var document=document||(window.document={});
^这里
require('./libs/laya.core.js');
require('./libs/laya.html.js');
执行时,会报出错误
Uncaught TypeError: Cannot assign to read only property 'document' of object '#<Window>'
出错的句子是
function(global) {'use strict';var window=window||global;var document=document||(window.document={});
^这里
没有找到相关结果
已邀请:
要回复问题请先登录
2 个回复
Laya_XS
赞同来自:
hhh_DDD
赞同来自: