diff --git a/examples/laydate.html b/examples/laydate.html index 3d59aa68..869faf35 100644 --- a/examples/laydate.html +++ b/examples/laydate.html @@ -157,8 +157,20 @@ layui.use('laydate', function(laydate){ laydate.render({ elem: '#test-first', min: 0, - shade: [0.1, '#ddd'] - //max: '2016-12-30' + shade: [0.1, '#ddd'], + //max: '2016-12-30', + done: function(){ + console.log('done',arguments); + }, + onConfirm: function(){ + console.log('confirm',arguments); + }, + onNow: function(){ + console.log('now',arguments); + }, + onClear: function(){ + console.log('clear',arguments); + } });