JS项整理

https://www.cnblogs.com/8023-CHD/p/11067141.html
session,cookie区别
(function($){
    $.fn.greenify = function(){
        // this.css("color", "green");
        $(this).css("color", "green");
    };
    $.fn.extend({
       aa:function () {
           $(this).css("color", "yellow");
       }
    });
})(jQuery);

引用的时候,例如$("#id").greenify ();
Jquery自定义扩展方法

 

posted @ 2019-11-07 13:47  古道子  阅读(86)  评论(0编辑  收藏  举报