首页javascriptbackgroundjQuery Style - 如何加载背景图象与延迟

jQuery Style - 如何加载背景图象与延迟

我们想知道如何加载背景图象与延迟。

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-git.js'></script>
<script type='text/javascript'>
       $('document').ready(function(){
            setTimeout(function() {
                $('body').css('background-image','url(http://www.w3cschool.cn/style/download.png)');
            },1000);
        });

</script>
</head>
<body>
</body>
</html>