摘要: 1 onInput(value) { 2 // if (this.type == 'payPwd' && this.payPwd.length < 6) { 3 // this.payPwd = this.payPwd + value; 4 // } else if (this.type == 'c 阅读全文
posted @ 2020-12-30 16:32 思猿客 阅读(550) 评论(0) 推荐(0) 编辑
摘要: 1、解析 url 参数成对象 1 analysis(url) { 2 var arr = url.split('?'); 3 var brr = arr[1].split('&'); 4 var obj = {}; 5 for (var i = 0; i < brr.length; i++) { 6 阅读全文
posted @ 2020-12-07 15:39 思猿客 阅读(1823) 评论(0) 推荐(0) 编辑
摘要: 1 // 此文件是生产环境下webpack相关配置 2 'use strict' 3 const path = require('path') 4 const utils = require('./utils') 5 const webpack = require('webpack') 6 cons 阅读全文
posted @ 2020-12-02 17:08 思猿客 阅读(998) 评论(0) 推荐(0) 编辑
摘要: 1 // 此文件是生产环境下webpack相关配置 2 'use strict' 3 const path = require('path') 4 const utils = require('./utils') 5 const webpack = require('webpack') 6 cons 阅读全文
posted @ 2020-12-02 16:41 思猿客 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 1 //此文件是检查node+npm的版本 在build.js里面使用 2 'use strict' 3 const chalk = require('chalk') //导入chalk模块 用来改变字体颜色 4 const semver = require('semver') //导入semver 阅读全文
posted @ 2020-12-02 16:38 思猿客 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 1 // 此文件是生产环境下webpack相关配置 2 'use strict' 3 const path = require('path') 4 const utils = require('./utils') 5 const webpack = require('webpack') 6 cons 阅读全文
posted @ 2020-12-02 16:37 思猿客 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 1 const fs = require('fs') 2 const path = require('path') 3 const webpack = require('webpack') 4 const UglifyJsPlugin = require('uglifyjs-webpack-plug 阅读全文
posted @ 2020-12-02 16:36 思猿客 阅读(505) 评论(0) 推荐(0) 编辑
摘要: 1 //此文件是开发环境下webpack相关配置 2 'use strict' 3 const utils = require('./utils') 4 const webpack = require('webpack') 5 const config = require('../config') 阅读全文
posted @ 2020-12-02 16:35 思猿客 阅读(2111) 评论(0) 推荐(0) 编辑
摘要: 1 // webpack.base.conf.js 基础配置 2 'use strict' 3 const path = require('path') // path模块是路径设置 4 const webpack = require('webpack') 5 const utils = requi 阅读全文
posted @ 2020-12-02 16:34 思猿客 阅读(2003) 评论(0) 推荐(0) 编辑
摘要: 1 //处理.vue文件的配置文件 2 'use strict' 3 const utils = require('./utils') 4 const config = require('../config') 5 const path = require('path') 6 const isPro 阅读全文
posted @ 2020-12-02 16:33 思猿客 阅读(670) 评论(0) 推荐(0) 编辑