blob: ce06fbc644daefb505907adfc0f1b500293538d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
---
title: document.inputEncoding
slug: conflicting/Web/API/Document/characterSet
translation_of: Web/API/Document/characterSet
translation_of_original: Web/API/Document/inputEncoding
original_slug: Web/API/Document/inputEncoding
---
<p>{{ ApiRef() }} {{ deprecated_header() }}</p>
<h3 id="概述">概述</h3>
<p>返回一个字符串,代表当前文档渲染时所使用的编码.(比如<code>utf-8</code>).</p>
<div class="warning">
<strong>警告:</strong> 不要再使用该属性.该属性在DOM 4 规范(草案)中已经被废弃. Gecko 在未来的版本中将会删除它.</div>
<h3 id="语法">语法</h3>
<pre class="eval"><var>encoding</var> = <code>document.inputEncoding;</code>
</pre>
<p><code>inputEncoding</code> 是个只读属性.</p>
<h3 id="规范">规范</h3>
<ul>
<li><a class="external" href="http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-inputEncoding">DOM Level 3 Core</a></li>
<li>This has been removed from {{ spec("http://www.w3.org/TR/domcore/","DOM Core Level 4","WD") }}</li>
</ul>
<p>{{ languages( {"en": "en/DOM/document.inputEncoding" } ) }}</p>
|