相关疑难解决方法(0)

jQuery中最快的children()或find()是什么?

要在jQuery中选择子节点,可以使用children(),但也可以使用find().

例如:

$(this).children('.foo');

给出与以下相同的结果:

$(this).find('.foo');

现在,哪个选项最快或者首选,为什么?

jquery jquery-selectors

314
推荐指数
5
解决办法
24万
查看次数

标签 统计

jquery ×1

jquery-selectors ×1