且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

jQuery隐藏一个DIV,如果它没有无序列表项

更新时间:2022-12-09 07:55:00

试试这个:

$(document).ready(function() {
    $('#contentFirst').hide();
    $('#contentFirst').has('ul').show();
});