jQuery实现方法的链式操作是非常容易的。这里给出正确的使用方法
糟糕的使用方法 代码如下: $second.html(value); $second.on('click',function(){ alert('hello everybody'); }); $second.fadeIn('slow'); $second.animate({height:'120px'},500); 建议使用方法 代码如下: $second.html(value); $second.on('click',function(){ alert('hello everybody'); }).fadeIn('slow').animate({height:'120px'},500);