在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問(wèn)答/HTML/ webpack打包的vue工程出現(xiàn)arguments callee Except

webpack打包的vue工程出現(xiàn)arguments callee Exception

在做vue-router的懶加載的時(shí)候碰到個(gè)問(wèn)題,先上代碼。

clipboard.png

Chrome Debug看看。

clipboard.png

詳細(xì)錯(cuò)誤信息如下:
Exception: TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them at Function.remoteFunction (<anonymous>:2:14) at eval (webpack-internal:///./src/utils/asyncRouter.js:18:14) at Array.forEach (<anonymous>) at generaMenu (webpack-internal:///./src/utils/asyncRouter.js:13:8) at __webpack_exports__.a (webpack-internal:///./src/utils/asyncRouter.js:10:3) at eval (webpack-internal:///./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/components/Login.vue:39:84) at <anonymous>

回答
編輯回答
雅痞

日志說(shuō)的很明顯了,在嚴(yán)格模式下禁止使用'caller', 'callee', and 'arguments'。檢索下你的代碼里是否寫了這些東西。

2018年4月24日 07:47