jQuery的document.ready()是否有本机Javascript实现?

问题描述:

 $(document).onload()

由window.onload事件在内部实现

it's internally implemented by window.onload event

 $(document).ready()

实现它的原生JavaScript是什么?

what's the native javascript to implement it?

对于Mozilla,Opera和Webkit,jQuery绑定 DOMContentLoaded 事件,对于IE jQuery使用

For Mozilla, Opera and webkit, jQuery binds the DOMContentLoaded event, for IE jQuery uses the onreadystatechange event.

jQuery源代码上查看内部bindReady函数.