01 2020 档案
摘要:const TerserPlugin = require('terser-webpack-plugin') module.exports = { configureWebpack({ optimization: { minimizer: [new TerserPlugin({ terserOptions: { compress: { drop_console: true } } })] } })
阅读全文
摘要:handleInput2(e){ console.log(e) // 通过正则过滤小数点后两位 e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null }, <el-input @keyup.native="ha
阅读全文