jQuery对象扩展方法中怎么引用jQuery对象?

$.fn.extend({
    test : function(){alert(this.text());}
});

$(document).ready(function(){
    $("#div1").test();
});


评论: 0 | 引用: 0 | 查看次数: 3934
发表评论
登录后再发表评论!