diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/api/domstringmap | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/zh-cn/web/api/domstringmap')
-rw-r--r-- | files/zh-cn/web/api/domstringmap/index.html | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/domstringmap/index.html b/files/zh-cn/web/api/domstringmap/index.html new file mode 100644 index 0000000000..b6f040cc36 --- /dev/null +++ b/files/zh-cn/web/api/domstringmap/index.html @@ -0,0 +1,45 @@ +--- +title: DOMStringMap +slug: Web/API/DOMStringMap +tags: + - API + - DOM + - 参考 + - 接口 +translation_of: Web/API/DOMStringMap +--- +<div>{{ APIRef("HTML DOM") }}</div> + +<p><strong><code>DOMStringMap</code></strong> 接口在 {{ domxref("HTMLElement.dataset") }} 属性中被用到,被用于容纳和展示元素的自定义属性。</p> + +<h2 id="规范">规范</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">规范</th> + <th scope="col">状态</th> + <th scope="col">备注</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{SpecName('HTML WHATWG', "dom.html#domstringmap", "DOMStringMap")}}</td> + <td>{{Spec2('HTML WHATWG')}}</td> + <td></td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + + + +<p>{{Compat("api.DOMStringMap")}}</p> + +<h2 id="参见">参见</h2> + +<ul> + <li>{{ domxref("HTMLElement.dataset") }}</li> + <li>HTML <a href="/zh-CN/docs/Web/HTML/Global_attributes">全局属性</a>中的 <a href="/zh-CN/docs/Web/HTML/Global_attributes#attr-data-*">data-*</a></li> +</ul> |