摘要: 1.路由懒加载 import Vue from 'vue' import Router from 'vue-router' Vue.use(Router) const router = new Router({ routes: [ { path: '/', component: () => impo 阅读全文
posted @ 2020-06-30 16:06 水吉佩奇 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 1.格式化金钱值 const ThousandNum = num => num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); const money = ThousandNum(20190214); // money => "20,190,214 阅读全文
posted @ 2020-06-30 15:49 水吉佩奇 阅读(413) 评论(0) 推荐(0) 编辑