Javascript jquery在与';这';
有没有办法把两个动画功能组合成一个,因为它们是相同的 谢谢 卢卡当然,只要使用: 当然,只要使用: 而不是:Javascript jquery在与';这';,javascript,jquery,jquery-selectors,Javascript,Jquery,Jquery Selectors,有没有办法把两个动画功能组合成一个,因为它们是相同的 谢谢 卢卡当然,只要使用: 当然,只要使用: 而不是: $(this).siblings('p').add(this).animate({color:color_column},2000); 你可以做: $(this).siblings('p').animate({color:color_column},2000); $(this).animate({color:color_column},2000); .而不是: $(this).sib
$(this).siblings('p').add(this).animate({color:color_column},2000);
你可以做:
$(this).siblings('p').animate({color:color_column},2000);
$(this).animate({color:color_column},2000);
.而不是:
$(this).siblings('p').add(this).animate({color:color_column},2000);
你可以做:
$(this).siblings('p').animate({color:color_column},2000);
$(this).animate({color:color_column},2000);
.您可以使用以下方法:
您可以使用以下方法:
$(this).siblings('p').andSelf().animate({color:color_column},2000);