You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
429 B

2 years ago
# FineUI中获取时间日期方法
```javascript
// 获取当前时间
BI.getDate() // Sun Oct 09 2022 16:41:57 GMT+0800 (中国标准时间)
// 根据时间戳获取时间
BI.getDate(1665304924353) // Sun Oct 09 2022 16:42:04 GMT+0800 (中国标准时间)
// 动态参数,依次为 year, month, day, hour, minute, second, millisecond
BI.getDate(2022,9) // Sat Oct 01 2022 00:00:00 GMT+0800 (中国标准时间)
```