码迷,mamicode.com
首页 > 其他好文 > 详细

return this.each(function ())

时间:2018-06-15 23:29:23      阅读:243      评论:0      收藏:0      [点我收藏+]

标签:方法   bsp   function   上下   tle   IV   style   其他   上下文   

1 return this.each(function(){         
2     //代码        
3 });

this.each()执行完返回的是this,这时候再return this.each(),返回的依旧是this,而这个this上下文又是指代$(‘[title]‘),意味着你可以在colorTip()后继续加其他方法,比如:

1 $(‘[title]‘).colorTip({color:‘yellow‘}).size();

 

 

return this.each(function ())

标签:方法   bsp   function   上下   tle   IV   style   其他   上下文   

原文地址:https://www.cnblogs.com/oliwang/p/9189217.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!