jQuery ready()上的document.readyState

use*_*772 3 javascript jquery dom

jQuery(document).ready(function() {
    console.log(document.readyState);
}
Run Code Online (Sandbox Code Playgroud)

显示interactive在Mac上的Chrome 33中.为什么不complete呢?

Jas*_*ans 6

来自developer.mozilla.org/en-US/docs/Web/API/document.readyState

在文档加载时返回"加载",在完成解析但仍加载子资源时返回"交互",并在加载后"完成".

  • 不知道该怎么办.从技术上讲,我在user3438825之前做了回答,所以我把我的评论作为答案,看看会发生什么. (2认同)