mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-12-16 07:51:52 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -7,9 +7,9 @@
|
||||
<p>默认情况下,<code>message</code> 属性是一个空字符串,但是可以通过指定一段信息作为 <a href="Reference/Global_Objects/Error" title="通过Error的构造器可以创建一个错误对象。当运行时错误产生时,Error的实例对象会被抛出。Error对象也可用于用户自定义的异常的基础对象。下面列出了各种内建的标准错误类型。"><code>Error constructor</code></a> 的第一个参数创建一个实例来改变该属性值。</p>
|
||||
<h2 id="Examples" name="Examples">示例</h2>
|
||||
<h3 id="Example:_Throwing_a_custom_error" name="Example:_Throwing_a_custom_error">例子:抛出一个自定义错误</h3>
|
||||
<pre class="brush: js">var e = new Error("Could not parse input"); // e.message is "Could not parse input"
|
||||
<pre><code class="language-javascript">var e = new Error("Could not parse input"); // e.message is "Could not parse input"
|
||||
throw e;
|
||||
</pre>
|
||||
</code></pre>
|
||||
<h2 id="规范">规范</h2>
|
||||
<table class="standard-table">
|
||||
<tbody>
|
||||
|
||||
Reference in New Issue
Block a user