Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
jQuery的“循环”中$(this)和(第二个参数)之间是否存在速度差异?$(elem).each()
$(this)
$(elem)
.each()
不; this并且elem两者都引用原始 DOM 元素。
this
elem
该elem参数也设置为this,所以不,没有区别。