Javascript函数,用于在加载整个页面后加载DIV

Javascript函数,用于在加载整个页面后加载DIV,javascript,html,load,loaded,Javascript,Html,Load,Loaded,我只想在加载整个页面后加载DIV“image” 我需要什么JS代码 <div class="row"> <div class="image"> CONTENT </div> </div> $(窗口).load(函数(){ $('.image').fadeIn(); }); 内容 只需将请求调用放入ready函数中: $(document).ready(function(){ //after the entire page is

我只想在加载整个页面后加载DIV“image”

我需要什么JS代码

<div class="row">
  <div class="image">
    CONTENT
  </div>
</div>
$(窗口).load(函数(){
$('.image').fadeIn();
});

内容

只需将请求调用放入
ready
函数中:

$(document).ready(function(){ //after the entire page is loaded.
   // load the DIV "image"
   $.get('url', function(data) {
        $('.image').html(data);
   });
});

希望这能有所帮助。

您可以调用ajax并在那里设置图像类div内容。我是瞎子还是您的代码不起作用?无论如何,请评论你的代码。。
$(document).ready(function(){ //after the entire page is loaded.
   // load the DIV "image"
   $.get('url', function(data) {
        $('.image').html(data);
   });
});