摘要:
当使用Jquery插件,经常会遇到和自己系统的Jquery类库版本不一致,特别是插件的Jquery版本号偏低,下面是Jquery1.3中index函数存在的bug:$.fn.index=function(type){ if(typeof(type)=="undefined"){ return$(this).prevAll().length;}else{ return$(this).prevAll().filter(type).length; }}; 阅读全文
posted @ 2011-11-17 11:23 Eric Chan 阅读(218) 评论(0) 推荐(0)