小技巧记录

1、weui下载路径:https://github.com/weui/weui

2、input=file在IE下,有光标,去除方法:font-size:0;

3、scss 使用  @mixin 定义方法时,定义的方法必须放置在调用之前,否则将报错  Undefined mixin 'family'.,其中family 为方法名

4、input输入框或者 textarea输入框的H5页面,嵌入ios的webview中时,光标不出现,解决方法:加上样式  -webkit-user-select:text;

5、vue 使用localhost访问,可以访问,但是使用了ip却访问不了。解决方法:在config下的index.js中,将 host: 'localhost', // can be overwritten by process.env.HOST 中的 localhost改为ip或者是0.0.0.0 ,重新run下就可以了;

6、将config下的index.js中的 index: path.resolve(__dirname, '../dist/index.html'), 里面的index.html改为其他名,打包后的文件就是自定义的名字了;

原文地址:https://www.cnblogs.com/atjinna/p/7009950.html