JS Date
发布日期:2021-05-14 16:20:44 浏览次数:28 分类:精选文章

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

Data

基本使用

 

转换

console.log(new Date())VM269:1 Tue Mar 02 2021 21:45:58 GMT+0800 (中国标准时间)undefinednow.getTimeƒ getTime() {    [native code] }now.getTime();1614692569038console.log(new Date(1614692569038))VM360:1 Tue Mar 02 2021 21:42:49 GMT+0800 (中国标准时间)undefinednow.toLocaleDateStringƒ toLocaleDateString() {    [native code] }now.toLocaleDateString();"2021/3/2"now.toGMTString();"Tue, 02 Mar 2021 13:42:49 GMT"
上一篇:JSON详解
下一篇:JS方法

发表评论

最新留言

逛到本站,mark一下
[***.202.152.39]2025年05月19日 15时09分19秒