jq扩展

方法一(不常用)
$.myjq = function(){
alert("hello myjQuery);
}
方法二
声明:
$.fn.myjq=function(){
$(this).text("hello");
调用:
$("div").myjq();

posted @ 2017-07-04 08:09  田云  阅读(116)  评论(0编辑  收藏  举报