vue 中 有个 ' use strict ' 为严格模式,导致我们的一些东西都不可以使用,使用便会报错
解决方法:我们下载 babel-plugin-transform-remove-strict-mode 的插件
下载插件:npm install babel-plugin-transform-remove-strict-mode
使用插件:当我们下载完插件会在根目录下面生成 .babelrc 的文件中,添加下面一段
vue 中 有个 ' use strict ' 为严格模式,导致我们的一些东西都不可以使用,使用便会报错 解决方法:我们下载babel-plugin-transform-remove-strict-mode 的插件 下载插件:npminstallbabel-plugin-transform-remove-strict-mode 使用插件:当我们下载完插件会在根...
vue 中 有个 ' use strict ' 为严格模式,导致我们的一些东西都不可以使用,使用便会报错
解决方法:我们下载 babel-plugin-transform-remove-strict-mode 的插件
下载插件:npm install babel-plugin-transform-remove-strict-mode
使用插件:当我们下载完插件会在根目录下面生成 .babelrc 的文件中,添加下面一段
转载于:https://www.cnblogs.com/shangjun6/p/11321694.html
更多推荐
所有评论(0)