第一步
安装
npm install moment --save
引入
import moment from "moment"
第二步
使用
this.monthes.MM = moment(this.monthes.stime).format("MM");
this.monthes.DD = moment(this.monthes.stime).format("DD");
第一步
安装
npm install moment --save
引入
import moment from "moment"
第二步
使用
this.monthes.MM = moment(this.monthes.stime).format("MM");
this.monthes.DD = moment(this.monthes.stime).format("DD");