📜  从 jquery 中的日期时间获取时间 - Javascript 代码示例

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

代码示例1
$(document).ready(function() {
    var today = new Date();
    var cHour = today.getHours();
    var cMin = today.getMinutes();
    var cSec = today.getSeconds();
    alert(cHour+ ":" + cMin+ ":" +cSec );
});