【发布时间】:2009-07-30 16:44:52
【问题描述】:
我意识到下面的代码不是抓取元素的最有效方式,但为了举例......
$('.myFirstClass').each(function(i){
// Here is the first 'THIS' occurrence
$(this).find('.mySecondClass').each(function(j){
// Here is the second 'THIS' occurrence
// How do i access the first occurrence from here?
});
});
【问题讨论】:
标签: javascript jquery oop