js 日期格式化以及获取某天的零点和23:59
格式化成2020-10-30 10:30:59样式:function formatTime(timestamp) { let time = new Date(timestamp) let year = time.getFullYear() const month = (time.getMonth() + 1).toString().padStart(2, '0') const date = (time.getDate()).toString().padStart(2, '0') con
原创
2020-10-30 10:46:48 ·
1450 阅读 ·
0 评论