mirror of
https://gitee.com/layui/layui.git
synced 2026-01-28 19:11:26 +08:00
优化 laydate 的 value 属性介绍
This commit is contained in:
@@ -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 的毫秒数
|
||||
|
||||
Reference in New Issue
Block a user