jQuery插件初级练习3答案

html:

     $("p").fontcolor().html("qaq")

jQuery:

   $.fn.extend({
fontcolor:function(){
this.css("font-size","30px").css("color","blue")
return this
}
})

posted on 2018-05-24 21:28  革命军总部  阅读(140)  评论(0)    收藏  举报