取消 vue 的严格模式

  vue 中 有个 ' use strict ' 为严格模式,导致我们的一些东西都不可以使用,使用便会报错

  解决方法:我们下载 babel-plugin-transform-remove-strict-mode 的插件

  下载插件:npm install babel-plugin-transform-remove-strict-mode -S

  使用插件:当我们下载完插件会在根目录下面生成  .babelrc 的文件中,添加下面一段    

  {
      "plugins"["transform-remove-strict-mode"]
  }
 
  //  这个是我们文件内 plugins 中原本具有的拥有的东西,我们是将 "transform-remove-strict-mode" ,添加到他们后面就可以了,但是有的时候不起作用,
  //  那么我们就原文件的这个东西删了,而去引入上面的东西
  {
    "plugins": ["transform-vue-jsx", "transform-runtime","transform-remove-strict-mode"]   // 不起作用就是上面那种写法,不要原文件的这个东西了
  }
  谷歌浏览器新出的功能,我们滑动会出现黄色的警告,不影响操作,但是看着不好看
  在 css 里面添加 
  *{
    touch-action: pan-y;
  }
原文地址:https://www.cnblogs.com/shangjun6/p/11321694.html