【发布时间】:2012-01-29 03:22:05
【问题描述】:
我已经在我的 js 中添加了这个:
function customFades() {
(function($) {
$.fn.fadeIn = function(speed, callback) {
return this.animate({opacity: 'show'}, speed, function() {
if (jQuery.browser.msie)
this.style.removeAttribute('filter');
if (jQuery.isFunction(callback))
callback();
});
};
$.fn.fadeOut = function(speed, callback) {
return this.animate({opacity: 'hide'}, speed, function() {
if (jQuery.browser.msie)
this.style.removeAttribute('filter');
if (jQuery.isFunction(callback))
callback();
});
};
})
(jQuery);
}
现在我在使用 .hide().fadeIn(); 时遇到了问题
所以我的问题是如何在这个问题上应用相同类型的修复?
【问题讨论】:
-
我是否添加类似 $.fn.hide = ??还是应该更像 $.fn.hide().fadeIn() = ??
标签: jquery hide fadein cleartype