糟糕的使用方法
复制代码 代码如下:
$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);
您可能感兴趣的文章:
- 模仿jQuery each函数的链式调用
- Javascript 链式调用实现代码(参考jquery)
- JavaScript对象链式操作代码(jquery)
- jQuery的链式调用浅析
- 浅析jQuery的链式调用之each函数
- jQuery链式操作如何实现以及为什么要用链式操作
- 使用JavaScript链式编程实现模拟Jquery函数
- jQuery链式操作实例分析
- jQuery对象的链式操作用法分析
- jQuery链式调用与show知识浅析