Skip to content
项目

mdn/dom-examples has 4,051 GitHub stars and 1,930 forks. GitHot measured -1 stars in 24 hours, +1 in 7 days, and +6 in 15 days. Last checked 2026-11-23 20:48 UTC. Last push 2026-11-18.

这些数字如何统计

实测星标增长

24小时
-1
7天
+1
15天
+6
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

关于

与 MDN 各个 DOM 和 Web API 文档页面配套的代码示例

网站与应用

README.md

原文

dom-examples

Code examples that accompany various MDN DOM and Web API documentation pages.

[!NOTE] You can include an example directly in MDN pages using {{EmbedLiveSample()}} macros or regular Markdown code blocks. These methods are simpler to maintain as the code lives beside the rest of the content. Only add examples to this repository if your example doesn't easily run on MDN pages for technical or security reasons.

Browser support

When creating code examples for a technology that's not yet available in all major browsers, consider using feature detection to fall back to a simpler behavior or inform the user that their browser is not yet supported. Do not specify supported browsers and their versions in code comments or prose, as this information quickly becomes outdated.

Repository contents

Contribute to MDN Web Docs

You can contribute to MDN Web Docs and be a part of our community through content contributions, engineering, or translation work. The MDN Web Docs project welcomes contributions from everyone who shares our goals and wants to contribute constructively and respectfully within our community.

To find out how to get started, see the CONTRIBUTING.md document in this repository. By participating in and contributing to our projects and discussions, you acknowledge that you have read and agree to our Code of Conduct.

Get in touch

You can communicate with the MDN Web Docs team and community using the communication channels.

探索相关项目

加载中…