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

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 @@
<p><strong><code>toString()</code></strong> 方法返回指定 <a href="Reference/Global_Objects/Number" title="JavaScript 的 Number 对象是经过封装的能让你处理数字值的对象。Number 对象由 Number() 构造器创建。"><code>Number</code></a> 对象的字符串表示形式。</p>
<h2 id="Syntax" name="Syntax">语法</h2>
<pre><code><var>numObj</var>.toString([<var>radix</var>])</code>
</pre>
</code></pre>
<h3 id="Parameter" name="Parameter">参数</h3>
<dl>
<dt>radix</dt>
@@ -23,7 +23,7 @@
<p>如果对象是负数则会保留负号。即使radix是2时也是如此返回的字符串包含一个负号-)前缀和正数的二进制表示,<strong>不是</strong> 数值的二进制补码。</p>
<p>进行数字到字符串的转换时,建议<strong>用小括号将要转换的目标括起来</strong>,防止出错。</p>
<h2 id="Examples" name="Examples">例子</h2>
<pre class="brush: js"><code>var count = 10;
<pre><code class="language-javascript"><code>var count = 10;
console.log(count.toString()); // 输出 '10'
console.log((17).toString()); // 输出 '17'
@@ -36,7 +36,7 @@ console.log((254).toString(16)); // 输出 'fe'
console.log((-10).toString(2)); // 输出 '-1010'
console.log((-0xff).toString(2)); // 输出 '-11111111'</code>
</pre>
</code></pre>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>