This commit is contained in:
sentsin
2017-09-03 08:25:54 +08:00
parent 58f01788b3
commit 48114b00f4
26 changed files with 47 additions and 40 deletions

View File

@@ -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);
}