$('.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)
$('.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)
| 归档时间: |
|
| 查看次数: |
522 次 |
| 最近记录: |