如何在$(this)中使用$(this),在Jquery上

mis*_*ima 1 jquery

$('.element').each(function(){
  $(this).load('file.php',function(){
    $(this).show(); // this row is not working
  });
});
Run Code Online (Sandbox Code Playgroud)

要么

$('.element').each(function(){
  setTimeout(function(){
    $(this).show(); // this row is not working
  },1000);
});
Run Code Online (Sandbox Code Playgroud)

Dar*_*rov 5

$('.element').each(function(){
    var $this = $(this);
    $this.load('file.php',function(){
        $this.show();
    });
});
Run Code Online (Sandbox Code Playgroud)

要么:

$('.element').each(function() {
    var $this = $(this);
    window.setTimeout(function() {
        $this.show();
    },1000);
});
Run Code Online (Sandbox Code Playgroud)