I have some div\'s that maybe be empty (depending on server-side logic).
10条回答 囚心锁ツ (楼主) 2020-12-03 08:08 Why does nobody use .filter ? $("div.section").filter(function() { return this.childNodes.length === 0; }).hide(); This is a more elegant solution compared to using .each. 0 讨论(0) 查看其它10个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
Why does nobody use .filter ?
$("div.section").filter(function() { return this.childNodes.length === 0; }).hide();
This is a more elegant solution compared to using .each.
.each