JS DATE对象详解

it2022-05-05  122

//获取时间对象:

new  Date()   //获取年份: getFullYear()   //获取月份: getMonth()   //获取星期: getDate()   //获取日: getDay()   //获取小时: getHours()   //获取分钟: getMinutes()   //获取秒: getSeconds()  

时间转换公式:

//天:

Math.floor(t/86400) //时: Math.floor(t
转载请注明原文地址: https://win8.8miu.com/read-19455.html

最新回复(0)