开发者

What is the difference between "DOMContent Event" and DOMContentLoaded in Chrome?

In the developer tools th开发者_StackOverflow社区ere is a blue line called "DOMContent Event" is this the same as "DOMContentLoaded" in the JavaScript events?


It turns out "DOMContent Event" is from webkit (which chrome relies on) and is equivelant to DOMContentLoaded.

EDIT: As of now (July 2012, Chrome 20) Chrome is supporting "DOMContentLoaded" as well, so you can use this and be sure, that it will be correctly supported in both Chrome, FF, as good as Safari and other WebKit-based browsers (still not supported in IE, AFAIK).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜