-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zh-CN: create Glossary/WebIDL (#22233)
- Loading branch information
1 parent
0b3f8ea
commit c2c67f2
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
title: WebIDL | ||
slug: Glossary/WebIDL | ||
l10n: | ||
sourceCommit: e099e74fe5c09c46f0dfe044894692721a713d29 | ||
--- | ||
|
||
{{GlossarySidebar}} | ||
|
||
**WebIDL** 是用于描述 Web 应用程序编程接口({{Glossary("API")}})的{{Glossary("type", "数据类型")}}、{{Glossary("interface", "接口")}}、{{Glossary("method", "方法")}}、{{Glossary("property", "属性")}}等组成部分的接口描述语言。它使用一种略微风格化的语法,独立于任何特定的编程语言,因此可以使用最合适的语言编写构建每个 API 的底层代码,同时仍然可以将 API 的组件映射到与 JavaScript 兼容的构造。 | ||
|
||
WebIDL 几乎用于 Web 的每个 API {{Glossary("specification", "规范")}},由于其标准格式和语法,创建 Web 浏览器的程序员可以更容易地确保他们的浏览器彼此兼容,而不管他们选择如何编写实现 API 的代码。 | ||
|
||
## 参见 | ||
|
||
- [规范](https://webidl.spec.whatwg.org/) | ||
- [WebIDL 文件中包含的信息](/zh-CN/docs/MDN/Writing_guidelines/Howto/Write_an_api_reference/Information_contained_in_a_WebIDL_file) | ||
- [Gecko WebIDL 绑定](https://firefox-source-docs.mozilla.org/dom/webIdlBindings/index.html) | ||
- [WebIDL](https://en.wikipedia.org/wiki/WebIDL) |