layui laydate中的年月选择器点击即选中

//时间选择器(月)
laydate.render({
elem: '#picker3',
theme: 'molv',
type: 'month',
btns: [ 'now'],
max: getNowFormatDate(),
// 点击即选中
ready:function(date){
$("#layui-laydate3").off('click').on('click','.laydate-month-list li',function(){
$("#layui-laydate3").remove();
});
},
change:function(value,dates,edate){
$('#picker3').val(value);
}
});
//时间选择器(年)
laydate.render({
elem: '#picker4',
theme: 'molv',
type: 'year',
btns: ['now'],
max: getNowFormatDate(),
ready:function(date){
$("#layui-laydate4").off('click').on('click','.laydate-year-list li',function(){
$("#layui-laydate4").remove();
});
},
change:function(value,dates,edate){
$('#picker4').val(value);
}
});