Fn.extend增多Jquery自身方法

Fn.extend增加Jquery自身方法例子:$.fn.extend({customInputCheck: function(o) {$(this).get(0).checked

Fn.extend增加Jquery自身方法
例子:

$.fn.extend({customInputCheck: function(o) {        $(this).get(0).checked = o;        if (o) {            $(this).next().addClass("checked");        } else {            $(this).next().removeClass("checked");        }    }});


PS:这样可以使用$("#aaa").customInputCheck()调用