mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-12-15 23:37:25 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<p>Note: <em>Math.ceil() === 向上取整</em></p>
|
||||
</div>
|
||||
<h2 id="Syntax" name="Syntax">语法</h2>
|
||||
<pre class="syntaxbox">Math.ceil(<em>x</em>) </pre>
|
||||
<pre><code class="language-javascript">Math.ceil(<em>x</em>) </code></pre>
|
||||
<h3 id="Parameters" name="Parameters">参数</h3>
|
||||
<dl>
|
||||
<dt><code>x</code></dt>
|
||||
@@ -21,14 +21,14 @@
|
||||
<h2 id="Examples" name="Examples">示例</h2>
|
||||
<h3 id="Example:_Using_Math.ceil" name="Example:_Using_Math.ceil">例子:使用 <code>Math.ceil</code></h3>
|
||||
<p>下例展示了 <code>Math.ceil()</code> 的使用:</p>
|
||||
<pre class="brush:js"><code>Math.ceil(.95); // 1
|
||||
<pre><code class="language-js"><code>Math.ceil(.95); // 1
|
||||
Math.ceil(4); // 4
|
||||
Math.ceil(7.004); // 8
|
||||
Math.ceil(-0.95); // -0
|
||||
Math.ceil(-4); // -4
|
||||
Math.ceil(-7.004); // -7</code></pre>
|
||||
Math.ceil(-7.004); // -7</code></code></pre>
|
||||
<h3 id="Example:_Decimal_adjustment" name="Example:_Decimal_adjustment">例子:十进制调整</h3>
|
||||
<pre class="brush:js">// Closure
|
||||
<pre><code class="language-js">// Closure
|
||||
(function(){
|
||||
|
||||
/**
|
||||
@@ -98,7 +98,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>
|
||||
|
||||
Reference in New Issue
Block a user