我的代码看起来像
$(".div-text").click(function(e) {
e.preventDefault();
$(this).parents(".items").find("img.mainImage").each(function() {
// following this should correspond to mainImage elements and not outside "this"
alert($(this).data("src")) ----------> **this "this" does not work**
})
});
我怎样才能有两个 this 对应于不同的元素或
上面代码的替代方法是什么???