我看了MDN上的文档
DOMContentLoaded事件跟load事件一样,是针对document这个对象的。
The DOMContentLoaded event is fired when the initial HTML document has been completely loaded and parsed, without waiting for stylesheets, images, and subframes to finish loading.
但是,jQuery却为$.fn添加了一个函数,叫做ready,用他来为DOMContentLoaded事件绑定回调函数。
既然是为document对象绑定回调函数,为何不做成一个静态函数,直接挂载在jquery对象下面?