mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2026-02-27 09:32:01 +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/date-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>dateObj</var>.toString()</pre>
|
||||
<pre><code class="language-javascript"><var>dateObj</var>.toString()</code></pre>
|
||||
<h3 id="Parameters" name="Parameters">参数</h3>
|
||||
<p>无</p>
|
||||
<h2 id="Description" name="Description">描述</h2>
|
||||
@@ -15,10 +15,10 @@
|
||||
<h2 id="Examples" name="Examples">例子</h2>
|
||||
<h3 id="Example:_Using_toString" name="Example:_Using_toString">例子: 使用 <code>toString</code> 方法</h3>
|
||||
<p>下例把一个<a href="Reference/Date" title="此页面仍未被本地化, 期待您的翻译!"><code>Date</code></a>对象的 <code>toString</code> 返回值赋给 <code>myVar:</code></p>
|
||||
<pre class="brush:js">var x = new Date();
|
||||
<pre><code class="language-js">var x = new Date();
|
||||
myVar = x.toString(); // 把类似于下面格式的值赋给 myVar,
|
||||
// Mon Sep 28 1998 14:36:22 GMT-0700 (Pacific Daylight Time)
|
||||
</pre>
|
||||
</code></pre>
|
||||
<h2 id="规范">规范</h2>
|
||||
<table class="standard-table">
|
||||
<tbody>
|
||||
|
||||
Reference in New Issue
Block a user