绑定页面上没有的标签事件

        (function ($) {
            $.extend({
                BE: function (opt) {
                    var def = {
                        id: null,
                        type: null,
                        fun: null
                    }
                    $.extend({}, opt, def);
                    $(document).delegate(opt.id, opt.type, opt.fun);
                }
            });
        })(jQuery);
        $(function () {
            $.BE({
                id: "#id",
                type: "click",
                fun: function (e) {
                  
                }
            });
        })
posted @ 2015-02-10 12:34  膽小  阅读(240)  评论(0编辑  收藏  举报