jq扩展

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

身是菩提树,心如明镜台,时时勤拂拭,勿使惹尘埃。
原文地址:https://www.cnblogs.com/birdofparadise/p/7114746.html