javascript - jQuery,很多 child 。有什么更好的方法来做到这一点?

标签 javascript jquery

有什么更好的方法......

$(el).children('.thing').children('.thing').children('.thing').children('.thing')

谢谢

最佳答案

$(el).find('> .thing > .thing > .thing > .thing');

关于javascript - jQuery,很多 child 。有什么更好的方法来做到这一点?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8401073/

相关文章:

javascript - 记录数组原型(prototype)上的所有方法

javascript - jQuery.verto 不是构造函数

javascript - 如何使用 HTML2Canvas 获取完整 HTML 页面的屏幕截图

javascript - 一次性转换所有类

javascript - jQuery 模式对话框未以位置标志居中

javascript - 如何在 javascript 中使用单选按钮显示值并使用复选框值添加它?

针对 Internet Explorer 的 Javascript 优化

javascript - 绑定(bind)页面高度变化的事件

javascript - JQuery Datepicker 隐藏页面上一个日历的日期

javascript - 如何使用 Raphael 将移动的圆圈动画化为更大的圆圈?