mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-12-16 07:51:52 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -5,18 +5,18 @@
|
||||
</div></div>
|
||||
<p><span class="short_text" id="result_box" lang="zh-CN"><span>toSource()方法返回一个表示对象的源码的字符串。</span></span></p>
|
||||
<h2 id="语法">语法</h2>
|
||||
<pre class="syntaxbox"><var>booleanObj</var>.toSource()
|
||||
Boolean.toSource()</pre>
|
||||
<pre><code class="language-javascript"><var>booleanObj</var>.toSource()
|
||||
Boolean.toSource()</code></pre>
|
||||
<h3 id="返回值">返回值</h3>
|
||||
<p><span class="short_text" id="result_box" lang="zh-CN"><span>表示对象的源码的字符串。</span></span></p>
|
||||
<h2 id="描述">描述</h2>
|
||||
<p><span class="short_text" id="result_box" lang="zh-CN"><span>toSource方法返回以下值:</span></span></p>
|
||||
<ul>
|
||||
<li><span id="result_box" lang="zh-CN"><span>对于内置的</span></span> <a href="Reference/Boolean" title="此页面仍未被本地化, 期待您的翻译!"><code>Boolean</code></a> <span lang="zh-CN"><span>对象,toSource返回以下字符串,表示源代码不可用:</span></span>
|
||||
<pre class="brush: js">function Boolean() {
|
||||
<pre><code class="language-javascript">function Boolean() {
|
||||
[native code]
|
||||
}
|
||||
</pre>
|
||||
</code></pre>
|
||||
</li>
|
||||
<li><span class="short_text" id="result_box" lang="zh-CN"><span>对于</span></span> <a href="Reference/Boolean" title="此页面仍未被本地化, 期待您的翻译!"><code>Boolean</code></a><span class="short_text" lang="zh-CN"><span> 的实例,toSource返回一个表示源代码的字符串。</span></span></li>
|
||||
</ul>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div><iframe class="interactive interactive-js" frameborder="0" height="250" src="https://interactive-examples.mdn.mozilla.net/pages/js/boolean-tostring.html" width="100%"></iframe></div>
|
||||
<p class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a class="external" href="https://github.com/mdn/interactive-examples" rel="noopener">https://github.com/mdn/interactive-examples</a> and send us a pull request.</p>
|
||||
<h2 id="Syntax" name="Syntax">语法</h2>
|
||||
<pre class="syntaxbox"><var>bool</var>.toString()</pre>
|
||||
<pre><code class="language-javascript"><var>bool</var>.toString()</code></pre>
|
||||
<h3 id="返回值">返回值</h3>
|
||||
<p>表示特定<a href="Reference/Boolean" title="此页面仍未被本地化, 期待您的翻译!"><code>Boolean</code></a>对象的字符串。</p>
|
||||
<h2 id="Description" name="Description">描述</h2>
|
||||
@@ -14,9 +14,9 @@
|
||||
<h2 id="示例">示例</h2>
|
||||
<h3 id="使用_toString">使用 <code>toString</code></h3>
|
||||
<p>下面的代码,<code>flag.toString</code> 返回 "<code>true</code>":</p>
|
||||
<pre class="brush: js">var flag = new Boolean(true)
|
||||
<pre><code class="language-javascript">var flag = new Boolean(true)
|
||||
var myVar = flag.toString()
|
||||
</pre>
|
||||
</code></pre>
|
||||
<h2 id="规范">规范</h2>
|
||||
<table class="standard-table">
|
||||
<tbody>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div><iframe class="interactive interactive-js" frameborder="0" height="250" src="https://interactive-examples.mdn.mozilla.net/pages/js/boolean-valueof.html" width="100%"></iframe></div>
|
||||
<p class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a class="external" href="https://github.com/mdn/interactive-examples" rel="noopener">https://github.com/mdn/interactive-examples</a> and send us a pull request.</p>
|
||||
<h2 id="Syntax" name="Syntax">语法</h2>
|
||||
<pre class="syntaxbox"><code><var>bool</var>.valueOf()</code></pre>
|
||||
<pre><code class="language-javascript"><code><var>bool</var>.valueOf()</code></code></pre>
|
||||
<h3 id="返回值">返回值</h3>
|
||||
<p>给定<a href="Reference/Boolean" title="此页面仍未被本地化, 期待您的翻译!"><code>Boolean</code></a>对象的原始值</p>
|
||||
<h2 id="Description" name="Description">描述</h2>
|
||||
@@ -12,9 +12,9 @@
|
||||
<p>该方法通常在 JavaScript 内部调用,而不是在代码中显式调用。</p>
|
||||
<h2 id="Examples" name="Examples">示例</h2>
|
||||
<h3 id="Example:_Using_valueOf" name="Example:_Using_valueOf">使用 <code>valueOf</code></h3>
|
||||
<pre class="brush: js">x = new Boolean();
|
||||
<pre><code class="language-javascript">x = new Boolean();
|
||||
myVar = x.valueOf() // assigns false to myVar
|
||||
</pre>
|
||||
</code></pre>
|
||||
<h2 id="规范">规范</h2>
|
||||
<table class="standard-table">
|
||||
<tbody>
|
||||
|
||||
Reference in New Issue
Block a user