formatTime(date) {let timeStamp = Date.parse(date);let now = new Date(timeStamp),y = now.getFullYear(),m = now.getMonth() + 1,d = now.getDate();return (y + '-' + (m < 10 ? '0' + m : m) + '-' + (d < 10 ? '0' + d : d) + ' ' + now.toTimeString().substr(0, 8));}
600字范文,内容丰富有趣,生活中的好帮手!