Js typeof Date.now()的值

发布于:2023-05-09 ⋅ 阅读:(365) ⋅ 点赞:(0)

Date.now() 方法返回自1970年1月1日 00:00:00 UTC到当前时间的毫秒数,返回的是一个时间戳,是number类型。

typeof Date.now()
//'number'