mirror of
https://gitee.com/layui/layui.git
synced 2025-10-15 18:55:04 +08:00
2.1.2
This commit is contained in:
@@ -133,9 +133,8 @@ layui.use('laydate', function(){
|
||||
laydate.render({
|
||||
elem: '#test2'
|
||||
,format: 'y年MM月dd日'
|
||||
,value: new Date().getFullYear() + '年' + lay.digit(new Date().getMonth() + 1) + '月' + lay.digit(new Date().getDate()) + '日'
|
||||
,max: 0
|
||||
//,value: new Date(2017,7,20)
|
||||
,value: new Date(1989,9,14)
|
||||
//,max: 0
|
||||
//,min: '2016-10-14'
|
||||
//,max: -1
|
||||
//,value: '1989年10月14日'
|
||||
@@ -167,6 +166,7 @@ layui.use('laydate', function(){
|
||||
,type: 'month'
|
||||
//,range: true
|
||||
//,trigger: 'click'
|
||||
,max: -30
|
||||
,done: function(value, date, endDate){
|
||||
console.log(value, date, endDate);
|
||||
}
|
||||
|
Reference in New Issue
Block a user