我编写了这个插件来捕获仅用于 div_loading_page 元素的显示事件:
(function ($) {
$.each(['show'], function (i, ev) {
var el = $.fn[ev];
$.fn[ev] = function () {
this.each(function () {
if (this.id == 'div_loading_page') {
$(this).trigger(ev);
return false; // break out of the loop
}
});
//alert(this.id);
el.apply(this, arguments);
};
});
})(jQuery);
它工作正常,但因此我收到以下错误:
$cluetipTitle.show() 是 undefined ,它来自于线索提示 jquery 插件。知道如何解决这个冲突吗?