绑定页面上没有的标签事件
(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) { } }); })