bluefox1688 / vue-cli-multi-page

因时间精力有限,项目已不再维护,请慎重使用,vue2-cli-vux2-multe-page,使用了webpack2+vuejs2+vuxUI2的多页面脚手架
829 stars 239 forks source link

请问怎么关闭严格模式 #17

Open CCCpan opened 7 years ago

CCCpan commented 7 years ago

我引入import mui from 'assets/lib/mui/mui.min.js'; 报错Uncaught TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them

网上说是严格模式,网上给的方法没能解决 请问这个怎么处理啊

CCCpan commented 7 years ago

大神快出来啊,项目要开始了,我打算用这个架子那~~~~~

bluefox1688 commented 7 years ago

不能这么直接引入这个JS的吧? 这个脚手架没有开启严格模式

CCCpan commented 7 years ago

哦,那我要用这个mui.js,也就是其他的js库, 项目开发必然会用到,一些js库,应该怎么解决啊?

CCCpan commented 7 years ago

哦,那我要用这个mui.js,也就是其他的js库, 项目开发必然会用到,一些js库,应该怎么解决啊?

CCCpan commented 7 years ago

不知道怎么引入,我这样直接引入jq都不行,说undefind

CCCpan commented 7 years ago

用npm安装的jq是可以直接用,自己下载到本地的引入就是undfind

bluefox1688 commented 7 years ago

mui.min.js的官网是什么?你看看mui.min.js在github里有没有包,有的话,就用import的方法导入

bluefox1688 commented 7 years ago

另外,不建议在vue使用jq

CCCpan commented 7 years ago

哦,谢谢楼主耐心回复,关于mui引入,我看了他官网http://dev.dcloud.net.cn/mui/ui/ 有git地址, 请问这个怎么用import导入啊?

CCCpan commented 7 years ago

我试着用cnpm install mui 安装成功了。但运行有报安装mui依赖, (This dependency was not found: To install it, you can run: npm install --save mui),不懂这了

,请问,npm可以安装那些东西啊?可以在哪里看吗?