摘要: 将日期时间转换为指定格式,如:YYYY-mm-dd HH:MM 表示 2020-11-05 17:00 function dateFormat(fmt, date) { let ret; const opt = { "Y+": date.getFullYear().toString(), // 年 阅读全文
posted @ 2020-11-05 17:21 牛奔 阅读(300) 评论(0) 推荐(0) 编辑
摘要: Vue 生命周期流程 最开始,用户使用 new Vue() 创建根 Vue 实例,或者 Vue 实例化子组件都会调用_init方法(我们将这两种实例都称为vm): function Vue(options) { //Vue 构造函数 ... this._init(options) } ... con 阅读全文
posted @ 2020-11-05 10:20 牛奔 阅读(528) 评论(0) 推荐(0) 编辑