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

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 @@
<h2 id="Summary" name="Summary">概述</h2>
<p> <code><strong>Math.sinh()</strong></code> 函数返回一个数字(单位为角度)的双曲正弦值.</p>
<h2 id="Syntax" name="Syntax">语法</h2>
<pre class="syntaxbox">Math.sinh(<em>x</em>)</pre>
<pre><code class="language-javascript">Math.sinh(<em>x</em>)</code></pre>
<h3 id="Parameters" name="Parameters">参数</h3>
<dl>
<dt><code>x</code></dt>
@@ -13,11 +13,11 @@
<p>双曲正弦的图像如下:</p>
<p><img alt="" src="http://upload.wikimedia.org/wikipedia/commons/1/17/Sinh.png" style="height: 300px; width: 300px;"/></p>
<h2 id="Examples" name="Examples">示例</h2>
<pre class="brush:js">Math.sinh(0) // 0
<pre><code class="language-js">Math.sinh(0) // 0
Math.sinh(1) // 1.1752011936438014
Math.sinh("-1") // -1.1752011936438014
Math.sinh("foo") // NaN
</pre>
</code></pre>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>
@@ -35,9 +35,9 @@ Math.sinh("foo") // NaN
</table>
<h2 id="Polyfill">Polyfill</h2>
<p>该函数可以使用 <a href="Reference/Global_Objects/Math/exp" title="Math.exp() 函数返回 exx 表示参数e 是欧拉常数Euler's constant自然对数的底数。"><code>Math.exp()</code></a><code> 函数来实现</code>:</p>
<pre class="brush: js language-js">function sinh(x){
<pre><code class="language-js language-js">function sinh(x){
return (Math.exp(x) - Math.exp(-x)) / 2);
}</pre>
}</code></pre>
<h2 id="浏览器兼容性">浏览器兼容性</h2>
<p></p><div class="blockIndicator warning"><strong><a class="external" href="https://github.com/mdn/browser-compat-data" rel="noopener">We're converting our compatibility data into a machine-readable JSON format</a></strong>.
This compatibility table still uses the old format,