基于vue项目的组件中导入mui框架初始化滑动等效果时需移除严格模式的问题


基于vue项目的组件中导入mui框架初始化滑动等效果时,控制台报错:Uncaught TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them

可使用 babel-plugin -transform-remove-strict-mode 移除严格模式

可先进行$ npm install babel-plugin-transform-remove-strict-mode安装此插件

再.babelrc文件中添加以下内容即可

{
  "plugins"["transform-remove-strict-mode"]
}


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM