aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html14
1 files changed, 7 insertions, 7 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html
index 0da94f62c2..14f5af47c3 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html
@@ -5,21 +5,21 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/exp
---
<div>
{{JSRef("Global_Objects", "Math")}}</div>
-<h2 id="Summary" name="Summary">概述</h2>
+<h2 id="Summary">概述</h2>
<p><code><strong>Math.exp()</strong></code> 函数返回 <code>e<sup>x</sup></code>,<code>x</code> 表示参数,<code>e</code> 是<a href="/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/E">欧拉常数(Euler's constant)</a>,自然对数的底数。</p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><code>Math.exp(<em>x</em>)</code></pre>
-<h3 id="Parameters" name="Parameters">参数</h3>
+<h3 id="Parameters">参数</h3>
<dl>
<dt>
<code>x</code></dt>
<dd>
一个数值</dd>
</dl>
-<h2 id="Description" name="Description">描述</h2>
+<h2 id="Description">描述</h2>
<p>由于 <code>exp</code> 是 <code>Math</code> 的静态方法,所以应该像这样使用:<code>Math.exp()</code>,而不是作为你创建的 <code>Math</code> 实例的方法。</p>
-<h2 id="Examples" name="Examples">示例</h2>
-<h3 id="Example:_Using_Math.exp" name="Example:_Using_Math.exp">例子:使用 <code>Math.exp</code></h3>
+<h2 id="Examples">示例</h2>
+<h3 id="Example:_Using_Math.exp">例子:使用 <code>Math.exp</code></h3>
<pre class="brush:js">Math.exp(-1); // 0.36787944117144233
Math.exp(0); // 1
Math.exp(1); // 2.718281828459045</pre>
@@ -96,7 +96,7 @@ Math.exp(1); // 2.718281828459045</pre>
</tbody>
</table>
</div>
-<h2 id="See_also" name="See_also">相关链接</h2>
+<h2 id="See_also">相关链接</h2>
<ul>
<li>The {{jsxref("Global_Objects/Math", "Math")}} object it belongs to.</li>
<li>{{jsxref("Math.E")}}</li>