Say I have this HTML:
top middle bottom middle 3条回答 灰色年华 (楼主) 2021-02-15 15:00 Use $('.middle', $top) or $top.find('.middle') You could also have simply combined the selectors, which are strings, with $($top.selector + ' .middle') but this would only be slower and less readable... 0 讨论(0) 查看其它3个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
Use
$('.middle', $top)
or
$top.find('.middle')
You could also have simply combined the selectors, which are strings, with
$($top.selector + ' .middle')
but this would only be slower and less readable...