优化 laydate 的 value 属性介绍

This commit is contained in:
贤心
2023-05-03 19:00:41 +08:00
parent e0f1180469
commit e5b6aa1302

View File

@@ -171,13 +171,13 @@ format: '北京时间 H 点 m 分'
初始值。值支持以下类型:
</div>
- 若为 `string` 类型,则必须和 `format` 属性格式对应
- 若为 `string` 类型,则必须和 `format` 属性格式对应
```
value: '2018-08-18'
```
- 若为 `date` 对象类型,则赋值 `new Date()` 的实例即可。
- 若为 `date` 对象类型,则可直接赋值 `new Date()`
```
value: new Date(1534766888000) // 参数即为2018-08-20 20:08:08 的毫秒数