laydate点击月份实现自动关闭功能

laydata

laydate.render({    elem:'#settleMonth',    type:'month',    format:'yyyy-MM',    showBottom:false,    ready:function(date){
        $("#layui-laydate3").off('click').on('click','.laydate-month-list li',function(){
            $("#layui-laydate3").remove();
        });
    },    change:function(value,dates,edate){
        $('#settleMonth').val(value);
    }
});


写的好!

微信扫一扫赏大洋