小编mis*_*ima的帖子

如何在$(this)中使用$(this),在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)

jquery

1
推荐指数
1
解决办法
522
查看次数

标签 统计

jquery ×1