淘先锋技术网

首页 1 2 3 4 5 6 7

jquery获取当前同级节点?

$("a").click(function(){

//获取当前a的前一个同级元素: $(this).prev(), 在你提供的代码中,即为 img元素

});