jq扩展

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

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