mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-12-16 07:51:52 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -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