摘要:当使用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
浙公网安备 33010602011771号