📜  javascript代码示例中的当前时间

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

代码示例6
var today = new Date().toLocaleDateString(undefined, {
    day: '2-digit',
    month: '2-digit',
    year: 'numeric',
    hour: '2-digit',
    minute: '2-digit',
    second: '2-digit'
})