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/document/inputencoding/index.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 files/zh-cn/web/api/document/inputencoding/index.html (limited to 'files/zh-cn/web/api/document/inputencoding') diff --git a/files/zh-cn/web/api/document/inputencoding/index.html b/files/zh-cn/web/api/document/inputencoding/index.html new file mode 100644 index 0000000000..ddffb1437f --- /dev/null +++ b/files/zh-cn/web/api/document/inputencoding/index.html @@ -0,0 +1,20 @@ +--- +title: document.inputEncoding +slug: Web/API/Document/inputEncoding +translation_of: Web/API/Document/characterSet +--- +

{{ ApiRef() }} {{ deprecated_header() }}

+

概述

+

返回一个字符串,代表当前文档渲染时所使用的编码.(比如utf-8).

+
+ 警告: 不要再使用该属性.该属性在DOM 4 规范(草案)中已经被废弃. Gecko 在未来的版本中将会删除它.
+

语法

+
encoding = document.inputEncoding;
+
+

inputEncoding 是个只读属性.

+

规范

+ +

{{ languages( {"en": "en/DOM/document.inputEncoding" } ) }}

-- cgit v1.2.3-54-g00ecf