$(‘#zhetenga‘).click(function(){
//this是被点击的#zhetenga
var that = this;
$(‘.zhetenga‘).each(function(){
//this是.zhetenga循环中当前的对象
//that仍然是刚才被点击的#zhetenga
});
});
时间: 2024-09-28 20:10:01
$(‘#zhetenga‘).click(function(){
//this是被点击的#zhetenga
var that = this;
$(‘.zhetenga‘).each(function(){
//this是.zhetenga循环中当前的对象
//that仍然是刚才被点击的#zhetenga
});
});