项目中需要手绘日历,日历可能会出现5行或6行,当第6行无数据时,不显示第6行。
example:
var txt = $(".calendarLi:nth-child(36)").html();
if(txt == null || txt == "") {
$(".calendarLi:nth-of-type(n+36)").remove();
$(".calendarLi:nth-of-type(n+36)").addClass("border-bottom");
}
项目中需要手绘日历,日历可能会出现5行或6行,当第6行无数据时,不显示第6行。
example:
var txt = $(".calendarLi:nth-child(36)").html();
if(txt == null || txt == "") {
$(".calendarLi:nth-of-type(n+36)").remove();
$(".calendarLi:nth-of-type(n+36)").addClass("border-bottom");
}