标签:col new fine pre min cond temp var 2-2
//格式华日期为2017-12-20
function datefomate(value) {
if(value==null || value == undefined){
return "";
}
var date = new Date(value);
Y = date.getFullYear(),
m = date.getMonth()+1,
d = date.getDate(),
H = date.getHours(),
i = date.getMinutes(),
s = date.getSeconds();
return Y+‘-‘+m+‘-‘+d;
};
在 mui的template模板中 <span id="">{{item.createTime|datefomate}}</span>
标签:col new fine pre min cond temp var 2-2
原文地址:https://www.cnblogs.com/zhou-pan/p/9512936.html