在小程序中获取当前时间
官方文档
生成 date 对象需要使用 `getDate` 函数, 返回一个当前时间的对象。
getDate()
getDate(milliseconds)
getDate(datestring)
getDate(year, month[, date[, hours[, minutes[, seconds[, milliseconds]]]]])
参数
milliseconds: 从1970年1月1日00:00:00 UTC开始计算的毫秒数
datestring: 日期字符.
原创
2020-11-12 17:37:17 ·
1128 阅读 ·
0 评论