laydate.render({
        elem:'#arriveHotelTime',
        type:'time' ,
        format:'HH:mm',//显示格式:小时:分钟
        min:'12:00:00',
        max: '23:30:00',
        theme: 'molv',
        ready: function (date) {
            var dom = $(".laydate-time-list").children("li");
            for (var i = 0; i < dom.length; i++) {
                if (i == 2 || i == 5) {
                    $(dom[i]).remove();
                } else if(i==1||i==4) {
                    var li = $(dom[i]).children("ol").children("li")
                    //console.log(li.length);
                    for (var j = 0; j < li.length; j++) {
                        //console.log($(li[j]).text())
                        if ($(li[j]).text() != 00 && $(li[j]).text()!=30) {
                            $(li[j]).remove();
                        }
                    }
                }
            }
        }
    });

 

posted on 2020-11-19 17:23  小胡桐  阅读(262)  评论(0编辑  收藏  举报