var time = ((new Date()).valueOf();
var hours = parseInt((time % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = parseInt((time % (1000 * 60 * 60)) / (1000 * 60));
var seconds = (time % (1000 * 60)) / 1000;
js时间戳转换成时分秒
最新推荐文章于 2024-10-07 16:23:10 发布