- 后端传过来的时间格式是英文时间格式
2.更改格式代码,formatdate(time)函数写在methods内
formatdate(time) {
var d = new Date(time);
var curr_date = d.getDate();
var curr_month = d.getMonth() + 1;
2.更改格式代码,formatdate(time)函数写在methods内
formatdate(time) {
var d = new Date(time);
var curr_date = d.getDate();
var curr_month = d.getMonth() + 1;