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

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

@@ -6,7 +6,7 @@
<p>Note:  <code><strong>Math.floor() === </strong></code>向下取整</p>
</div>
<h2 id="Syntax" name="Syntax">语法</h2>
<pre class="syntaxbox"><code>Math.floor(<em>x</em>) </code></pre>
<pre><code class="language-javascript"><code>Math.floor(<em>x</em>) </code></code></pre>
<h3 id="Parameters" name="Parameters">参数</h3>
<dl>
<dt><code>x</code></dt>
@@ -20,7 +20,7 @@
<p>由于 <code>floor</code><code>Math</code> 的一个静态方法,你总是应该像这样使用它 <code>Math.floor()</code>而不是作为你创建的一个Math对象的一种方法Math不是一个构造函数</p>
<h2 id="Examples" name="Examples">示例</h2>
<h3 id="Example:_Using_Math.floor" name="Example:_Using_Math.floor">例子:使用 <code>Math.floor</code></h3>
<pre class="brush:js">Math.floor( 45.95);
<pre><code class="language-js">Math.floor( 45.95);
// 45
Math.floor( 45.05);
// 45
@@ -31,9 +31,9 @@ Math.floor(-45.05);
Math.floor(-45.95);
// -46
</pre>
</code></pre>
<h3 id="Example:_Decimal_adjustment" name="Example:_Decimal_adjustment">例子:十进制调整</h3>
<pre class="brush:js">// Closure
<pre><code class="language-js">// Closure
(function(){
/**
@@ -103,7 +103,7 @@ Math.ceil10(55.51, -1); // 55.6
Math.ceil10(51, 1); // 60
Math.ceil10(-55.59, -1); // -55.5
Math.ceil10(-59, 1); // -50
</pre>
</code></pre>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>