Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOMContentLoaded 和 onload 的区别 #128

Open
GleanCoder1116 opened this issue Feb 7, 2021 · 0 comments
Open

DOMContentLoaded 和 onload 的区别 #128

GleanCoder1116 opened this issue Feb 7, 2021 · 0 comments
Labels
高频面试 高频面试

Comments

@GleanCoder1116
Copy link
Member

DOMContentLoaded

当初始的 HTML 文档被完全加载和解析完成之后,DOMContentLoaded 事件被触发,而无需等待样式表、图像和子框架的完全加载。

onload

onload 属性是一个事件处理程序用于处理Window, XMLHttpRequest, 等元素的加载事件,当资源已加载时被触发

@GleanCoder1116 GleanCoder1116 added the 高频面试 高频面试 label Feb 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
高频面试 高频面试
Projects
None yet
Development

No branches or pull requests

1 participant