← 返回首页
DOMStringMap - Web APIs | MDN

DOMStringMap

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

The DOMStringMap interface is used for the HTMLElement.dataset attribute, to represent data for custom attributes added to elements.

In this article

Specifications

Specification
HTML
# domstringmap

Browser compatibility

Enable JavaScript to view this browser compatibility table.

See also