js 中获取时间戳的方式
发布日期:2021-05-08 00:13:23 浏览次数:21 分类:原创文章

本文共 239 字,大约阅读时间需要 1 分钟。

js 中获取时间戳的方式


 document.write(`Date.now() 当前毫秒数: ${
Date.now()}
<br>`
) document.write(`new Date().getTime() 当前毫秒数: ${
new Date().getTime()}
<br>`
) document.write(`new Date().valueOf() 当前毫秒数: ${
new Date().valueOf()}
<br>`
)

js 获取时间戳

上一篇:js 的 textContent, innerText 区别
下一篇:js 中的 this

发表评论

最新留言

表示我来过!
[***.240.166.169]2025年04月12日 01时55分42秒