📌  相关文章
📜  js tolocalestring 无秒 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:03.098000             🧑  作者: Mango

代码示例2
var dateWithoutSecond = new Date();
dateWithoutSecond.toLocaleTimeString([], {year: 'numeric', month: 'numeric', day: 'numeric', hour: '2-digit', minute: '2-digit'});