jQuery插件初级练习5答案

html:

      $.kafei.fontsize($("p"),"30px").html("123")

jQuery:

       $.kafei={
fontsize:function(obj,value){
obj.css("font-size",value)
return obj
}
}

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