From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../zh-cn/web/api/htmldataelement/value/index.html | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 files/zh-cn/web/api/htmldataelement/value/index.html (limited to 'files/zh-cn/web/api/htmldataelement/value') diff --git a/files/zh-cn/web/api/htmldataelement/value/index.html b/files/zh-cn/web/api/htmldataelement/value/index.html new file mode 100644 index 0000000000..cc849ee548 --- /dev/null +++ b/files/zh-cn/web/api/htmldataelement/value/index.html @@ -0,0 +1,45 @@ +--- +title: HTMLDataElement.value +slug: Web/API/HTMLDataElement/value +translation_of: Web/API/HTMLDataElement/value +--- +

{{APIRef("HTML DOM")}}

+ +

{{domxref("HTMLDataElement")}} 接口的 value 属性返回反映   {{htmlattrxref("value", "data")}} HTML 属性的{{domxref("DOMString")}} 。

+ +

Syntax

+ +
var aValue = htmlDataElement.value
+htmlDataElement.value = aValue
+ +

Value

+ +

A {{domxref("DOMString")}}.

+ +

Specifications

+ + + + + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('HTML WHATWG', "#dom-data-value", "HTMLDataElement.value")}}{{Spec2('HTML WHATWG')}}
{{SpecName('HTML5 W3C','text-level-semantics.html#dom-data-value','value')}}{{Spec2('HTML5 W3C')}}
+ +

Browser compatibility

+ + + +

{{Compat("api.HTMLDataElement.value")}}

-- cgit v1.2.3-54-g00ecf