摘要: 1.es6新增方法转成兼容的es5. npm install babel-polyfill --save-dev 2.使用sass npm install node-sass --save-dev npm install sass-loader --save-dev npm install styl 阅读全文
posted @ 2020-03-19 14:37 linyl 阅读(98) 评论(0) 推荐(0)
摘要: 找到并打开 /build/webpack.prod.conf.js 修改如下内容: output: { ... /* #20200310_1 修改 start */ // filename: utils.assetsPath('js/[name].[chunkhash].js'), // chunk 阅读全文
posted @ 2020-03-11 14:39 linyl 阅读(1624) 评论(0) 推荐(0)
摘要: webpack版本:4.28.0 node版本:10.14.2 npm install node-sass --save-dev //安装node-sass npm install sass-loader --save-dev //安装sass-loader npm install style-lo 阅读全文
posted @ 2019-09-16 17:49 linyl 阅读(1202) 评论(0) 推荐(0)
摘要: 1.下载lib-flexible文件 npm install lib-flexible --save 2.引入lib-flexible文件 import 'lib-flexible' 3.安装px2rem #. npm i postcss-px2rem --save #. npm install p 阅读全文
posted @ 2018-07-13 18:16 linyl 阅读(912) 评论(0) 推荐(0)
摘要: { required: [/[\S]+/,'必填项不能为空'], int: [/^\d+$/,'请输入整数'], email: [/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,'邮箱格式不正确'], phone: 阅读全文
posted @ 2018-03-15 15:15 linyl 阅读(407) 评论(0) 推荐(0)
摘要: function uploadPreview (setting) { //图片上传预览 /*this(当前对象)*/ var _self = this; /*判断为null或者空值*/ _self.IsNull = function (value) { if (typeof (value) == " 阅读全文
posted @ 2017-04-19 09:58 linyl 阅读(2159) 评论(0) 推荐(0)