diff options
Diffstat (limited to 'files/zh-tw/web/javascript/reference/global_objects/object/index.html')
-rw-r--r-- | files/zh-tw/web/javascript/reference/global_objects/object/index.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/files/zh-tw/web/javascript/reference/global_objects/object/index.html b/files/zh-tw/web/javascript/reference/global_objects/object/index.html index 3885c44a15..cf55c9b004 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/object/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/object/index.html @@ -15,7 +15,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object <h2 id="語法">語法</h2> -<pre class="syntaxbox notranslate">// Object initialiser or literal +<pre class="syntaxbox">// Object initialiser or literal { [ <var>nameValuePair1</var>[, <var>nameValuePair2</var>[, ...<var>nameValuePairN</var>] ] ] } // Called as a constructor @@ -110,24 +110,24 @@ new Object([<var>value</var>])</pre> <p>下面例子儲存一個空物件至變數o</p> -<pre class="brush: js notranslate">var o = new Object(); +<pre class="brush: js">var o = new Object(); </pre> -<pre class="brush: js notranslate">var o = new Object(undefined); +<pre class="brush: js">var o = new Object(undefined); </pre> -<pre class="brush: js notranslate">var o = new Object(null); +<pre class="brush: js">var o = new Object(null); </pre> <h3 id="Using_Object_to_create_Boolean_objects">Using <code>Object</code> to create <code>Boolean</code> objects</h3> <p>下面例子儲存 {{jsxref("Boolean")}} 物件在 <code>o</code>:</p> -<pre class="brush: js notranslate">// equivalent to o = new Boolean(true); +<pre class="brush: js">// equivalent to o = new Boolean(true); var o = new Object(true); </pre> -<pre class="brush: js notranslate">// equivalent to o = new Boolean(false); +<pre class="brush: js">// equivalent to o = new Boolean(false); var o = new Object(Boolean()); </pre> |