window.onload 包括页面的图片加载完后才会回调(晚) 只能有一个监听回调(第二次添加监听会替换第一次的监听) $(document).ready() 等同于: $(function(){}) 页面加载完就回调(早) 可以有多个监听回调