mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2026-02-27 17:44:35 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user