语法高亮,滚动条美化,设置页面调整

This commit is contained in:
fofolee
2019-04-19 02:41:09 +08:00
parent 1e8f76c000
commit 359d29ee0b
1590 changed files with 12328 additions and 11441 deletions

View File

@@ -3,7 +3,7 @@
<div><code><strong>WebAssembly.LinkError()</strong></code> 构造器创建一个新的WebAssembly <code>LinkError</code> 对象, 该对象表明一个模块创建时(besides <a class="external" href="http://webassembly.org/docs/semantics/#traps" rel="noopener">traps</a> from the start function)发生的错误.</div>
<p> </p>
<h2 id="句法">句法</h2>
<pre class="syntaxbox">new WebAssembly.LinkError(<var>message</var>, <var>fileName</var>, <var>lineNumber</var>)</pre>
<pre><code class="language-javascript">new WebAssembly.LinkError(<var>message</var>, <var>fileName</var>, <var>lineNumber</var>)</code></pre>
<h3 id="Parameters">Parameters</h3>
<dl>
<dt><code>message</code> <span class="inlineIndicator optional optionalInline">可选</span></dt>
@@ -41,7 +41,7 @@
</dl>
<h2 id="Examples">Examples</h2>
<p>下列代码片段创建了一个新的 <code>LinkError</code> 实例, 并将其打印到控制台:</p>
<pre class="brush: js">try {
<pre><code class="language-javascript">try {
throw new WebAssembly.LinkError('Hello', 'someFile', 10);
} catch (e) {
console.log(e instanceof LinkError); // true
@@ -51,7 +51,7 @@
console.log(e.lineNumber); // 10
console.log(e.columnNumber); // 0
console.log(e.stack); // returns the location where the code was run
}</pre>
}</code></pre>
<h2 id="Specifications">Specifications</h2>
<table class="standard-table">
<thead>