$("ul").has("li").length > 0;
$("ul > li").length > 0;
$("ul").find("li").length > 0;
转载于:https://www.cnblogs.com/lxcmyf/p/6769803.html
$("ul").has("li").length > 0;
$("ul > li").length > 0;
$("ul").find("li").length > 0;
转载于:https://www.cnblogs.com/lxcmyf/p/6769803.html