不能在jQuery中使用$ this

alb*_*123 0 html javascript jquery web

我遇到了一个问题.我有"菜单",菜单是样式表,并在jQuery中获得了使菜单移动的代码.我的问题是,为什么我不能在我的代码中使用$ this varible?我是jQuery的大佬,所以请耐心等待我.我会很高兴得到任何答案.

$(document).ready(function(){
    $('.item').hover(function(){
        $($this).stop().animate({paddingLeft: '20px'}, "slow");
}, function(){
        $($this).stop().animate({paddingLeft: '0px'}, "slow");
    });
});
Run Code Online (Sandbox Code Playgroud)

我的代码:jsFiddle

Wil*_*lis 11

它应该是 $(this)