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

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

@@ -2,7 +2,7 @@
<div></div>
<p><code><strong>valueOf()</strong></code> 方法返回一个<a href="Reference/String" title="此页面仍未被本地化, 期待您的翻译!"><code>String</code></a>对象的原始值primitive value</p>
<h2 id="Syntax" name="Syntax">语法</h2>
<pre class="syntaxbox"><code><em>str</em>.valueOf()</code></pre>
<pre><code class="language-javascript"><code><em>str</em>.valueOf()</code></code></pre>
<h2 id="Description" name="Description">描述</h2>
<p><a href="Reference/String" title="此页面仍未被本地化, 期待您的翻译!"><code>String</code></a> 对象的 <code>valueOf</code> 方法返回一个<a href="Reference/String" title="此页面仍未被本地化, 期待您的翻译!"><code>String</code></a>对象的原始值。该值等同于<a href="Reference/Global_Objects/String/toString" title="toString() 方法返回指定对象的字符串形式。"><code>String.prototype.toString()</code></a></p>
<p>该方法通常在 JavaScript 内部被调用,而不是在代码里显示调用。</p>
@@ -10,7 +10,7 @@
<h3 id="Example:_Using_valueOf" name="Example:_Using_valueOf">例子:使用 <code>valueOf</code></h3>
<pre>x = new String("Hello world");
alert(x.valueOf()) // Displays "Hello world"
</pre>
</code></pre>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>