Javascript 将$(this)传递给jQuery淡出回调

Javascript 将$(this)传递给jQuery淡出回调,javascript,jquery,function,callback,effects,Javascript,Jquery,Function,Callback,Effects,我知道我需要使用回调,以便html()在fadeOut()之后才会发生,但在fadeOut()回调中,我无法从访问$(此)。悬停 我尝试使用var point传递选择,但不起作用 if(!$.browser.msie) { points = $("div.point"); } else { points = $("div.flash"); } 问题区域 HTML 屋顶系统 不要将点用作淡出回调的参数。它将隐藏您先前“捕获”的点变量: 不要将点用作淡出回调的参数。它将隐藏您先前

我知道我需要使用回调,以便
html()
fadeOut()
之后才会发生,但在
fadeOut()
回调中,我无法从
访问
$(此)
。悬停

我尝试使用
var point
传递选择,但不起作用

if(!$.browser.msie) {
    points = $("div.point");
} else {
    points = $("div.flash");
}
问题区域

HTML


屋顶系统


不要将点用作淡出回调的参数。它将隐藏您先前“捕获”的点变量:


不要将点用作淡出回调的参数。它将隐藏您先前“捕获”的点变量:


通过将点作为参数放入回调函数中,可以重置该函数中的值

将点作为参数放入回调函数中,就是在该函数中重置它的值

正是我所害怕的,一个愚蠢而简单的解决办法:)谢谢你,阿西瓦。正是我所害怕的,一个愚蠢而简单的解决办法:)谢谢你,阿西瓦。
$(points).hover(
    function () {
        var point = $(this);
        $('#features_key').fadeOut('normal', function (point) {
            $('#features_key').html(point.next('.info').clone()).fadeIn('normal');
        });
    },
    function () {
    }
);
<div class="feature" id="feature0">
    <div class="point"></div>
    <div class="info"><p>Roof System</p></div>
</div>
$(points).hover(
    function () {
            var point = $(this);

            $('#features_key').fadeOut('normal', function() {
                    $('#features_key').html(point.next('.info').clone()).fadeIn('normal');
            });
    }, 
    function () {
    }
);