摘要:
Vee Validate 安装 yarn add vee-validate S ES6+ import Vue from 'vue' import App from './App.vue' import router from './router' import store from './stor 阅读全文
摘要:
场景一: 对象转换成数组 <script> var people = { 'susan': { 'age': '28', 'sex': '女' } } function getUsers() { var ret = [] for (let [key, value] of Object.entries 阅读全文
摘要:
model层封装 class BaseModel { constructor(data, msg) { if (typeof data 'string') { this.msg = data data = null msg = null } if (data) { this.data = data 阅读全文
摘要:
function dateFormat(date, format) { if (typeof date "string") { var mts = date.match(/(\/Date\((\d+)\)\/)/); if (mts && mts.length >= 3) { date = pars 阅读全文