Given this sample markup (assuming a random number of elements between .outer and .inner:
.outer
.inner
6条回答 轮回少年 (楼主) 2020-12-17 02:31 You could use some css magic: $('.outer>.inner') Shold give you only first level of .inner elements. :) 0 讨论(0) 查看其它6个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
You could use some css magic:
$('.outer>.inner')
Shold give you only first level of .inner elements. :)