在vue中导入mui.js时报错‘caller‘, ‘callee‘, and ‘arguments‘ properties may not be accessed on strict mode

在vue中导入导入mui.js时报错’caller’, ‘callee’, and ‘arguments’ properties may not be accessed on strict mode fun

‘错误提示:caller’, ‘callee’, and ‘arguments’ properties may not be accessed on strict mode functions or the arguments objects for calls to them
原因:babel在将js文件转码为ES6时,默认使用严格模式,而在严格模式下,为了安全起见是不能用caller,callee,arguments等属性的。
解决方案:
在.babelrc文件中,添加配置文件忽略第三方js文件:
.babelrc文件

	"ignore": [  "./src/lib/mui/js/*.js"]

猜你喜欢

转载自blog.csdn.net/yanzi_0216/article/details/109080451
今日推荐