window.onload是等待DOM和图片等加载完执行,$(function(){});是只要DOM渲染完就马上执行。
2017-01-23
各主流框架DOMReady的实现:
http://www.cnblogs.com/JulyZhang/archive/2011/02/12/1952484.html
http://www.cnblogs.com/JulyZhang/archive/2011/02/12/1952484.html
2017-01-19