$.extend为什么要变成$.fn.extend?还有这里return一下有什么作用?
(function($){
$.fn.extend({
"libgC":function(){
$(this).find("li").each(function(){
$(this)
.mouseover(function(){
$(this).css("background-color","#ccc");
})
.mouseout(function(){
$(this).css("background-color","#fff");
});
})
return $(this);//这个return的用处是什么?
}
})
})(jQuery);
$(function(){
$("ul").libgC();
});