formatDate(nows) {
var now = new Date(nows);
var year = now.getFullYear();
var month = now.getMonth() + 1;
var date = now.getDate();
var hour = now.getHours();
var minute = now.getMinutes();
var second = now.getSeconds();
return year + "-" + month + "-" + date;
},
js--转换时间
最新推荐文章于 2023-05-06 14:30:11 发布