aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/webassembly/instance/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/webassembly/instance/index.html')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/webassembly/instance/index.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/webassembly/instance/index.html b/files/zh-cn/web/javascript/reference/global_objects/webassembly/instance/index.html
index e64f663b93..d66e1554ca 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/webassembly/instance/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/webassembly/instance/index.html
@@ -18,7 +18,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance
<h2 id="构造函数">构造函数</h2>
<div class="warning">
-<p><strong>重要</strong>: 由于大型模块的实例化代价极高, 开发人员应只在必须同步实例化的时候,才使用<code>Instance()</code>;绝大多数情况应该使用异步方法{{jsxref("WebAssembly.instantiate()")}} .</p>
+<p><strong>警告:</strong>由于大型模块的实例化代价极高, 开发人员应只在必须同步实例化的时候,才使用<code>Instance()</code>;绝大多数情况应该使用异步方法{{jsxref("WebAssembly.instantiate()")}} .</p>
</div>
<pre class="syntaxbox">var myInstance = new WebAssembly.Instance(<em>module</em>, <em>importObject</em>);</pre>
@@ -41,7 +41,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance
<dl>
<dt>{{jsxref("WebAssembly/Instance/exports", "Instance.prototype.exports")}}</dt>
<dd>返回一个包含此 WebAssembly 模块实例所导出的全部成员的 JS 对象,以便 JavaScript 访问和使用这些成员,这个对象是只读的。</dd>
- <dt></dt>
</dl>
<h2 id="规格">规格</h2>
@@ -63,9 +62,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance
</tbody>
</table>
-<h2 id="Browser_compatibility"
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{Compat("javascript.builtins.WebAssembly.Instance")}}</div>
+{{Compat}}
<h2 id="参考">参考</h2>