2012年7月21日
摘要: 1.jQuery.fn.extend 是对jQuery方法进行扩展jQuery.fn.extend({color:function(val){if(val==undefined){return$(this).css("color");}else{return$(this).css("color",val);}}})$(this).color("red");//对jquery对象进行颜色设置alert($(this).color("red");//对jquery对象进行颜色设置demo: jquery 本身并不提供 阅读全文
posted @ 2012-07-21 11:55 一路前行 阅读(370) 评论(0) 推荐(0) 编辑