aboutsummaryrefslogtreecommitdiff
path: root/files/zh-tw/web/javascript/reference/global_objects/object
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-tw/web/javascript/reference/global_objects/object')
-rw-r--r--files/zh-tw/web/javascript/reference/global_objects/object/defineproperties/index.html49
1 files changed, 21 insertions, 28 deletions
diff --git a/files/zh-tw/web/javascript/reference/global_objects/object/defineproperties/index.html b/files/zh-tw/web/javascript/reference/global_objects/object/defineproperties/index.html
index 23eb95a642..7739ab4bdd 100644
--- a/files/zh-tw/web/javascript/reference/global_objects/object/defineproperties/index.html
+++ b/files/zh-tw/web/javascript/reference/global_objects/object/defineproperties/index.html
@@ -17,34 +17,27 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/defineProperties
<dt><code>obj</code></dt>
<dd>The object on which to define or modify properties.</dd>
<dt><code>props</code></dt>
- <dd>An object whose own enumerable properties constitute descriptors for the properties to be defined or modified. Property descriptors present in objects come in two main flavors: data descriptors and accessor descriptors (see {{jsxref("Object.defineProperty()")}} for more details). Descriptors have the following keys:</dd>
- <dd>
- <dl>
- <dt><code>configurable</code></dt>
- <dd><code>true</code> if and only if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.<br>
- <strong>預設為 <code>false</code>.</strong></dd>
- <dt><code>enumerable</code></dt>
- <dd><code>若該屬性設為 true,則該屬性可被物件所列舉。</code><br>
- <strong>預設為 <code>false</code>.</strong></dd>
- </dl>
-
- <dl>
- <dt><code>value</code></dt>
- <dd>The value associated with the property. Can be any valid JavaScript value (number, object, function, etc).<br>
- <strong>預設為 {{jsxref("undefined")}}.</strong></dd>
- <dt><code>writable</code></dt>
- <dd><code>若該屬性為 true</code>,則該屬性可透過{{jsxref("Operators/Assignment_Operators", "賦予運算子", "", 1)}}所改變<br>
- <strong>預設為 <code>false</code>.</strong></dd>
- </dl>
-
- <dl>
- <dt><code>get</code></dt>
- <dd>A function which serves as a getter for the property, or {{jsxref("undefined")}} if there is no getter. The function return will be used as the value of property.<br>
- <strong>預設為 {{jsxref("undefined")}}.</strong></dd>
- <dt><code>set</code></dt>
- <dd>A function which serves as a setter for the property, or {{jsxref("undefined")}} if there is no setter. The function will receive as only argument the new value being assigned to the property.<br>
- <strong>預設為 {{jsxref("undefined")}}.</strong></dd>
- </dl>
+ <dd>An object whose own enumerable properties constitute descriptors for the properties to be defined or modified. Property descriptors present in objects come in two main flavors: data descriptors and accessor descriptors (see {{jsxref("Object.defineProperty()")}} for more details). Descriptors have the following keys:
+ <dl>
+ <dt><code>configurable</code></dt>
+ <dd><code>true</code> if and only if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.<br>
+ <strong>預設為 <code>false</code>.</strong></dd>
+ <dt><code>enumerable</code></dt>
+ <dd><code>若該屬性設為 true,則該屬性可被物件所列舉。</code><br>
+ <strong>預設為 <code>false</code>.</strong></dd>
+ <dt><code>value</code></dt>
+ <dd>The value associated with the property. Can be any valid JavaScript value (number, object, function, etc).<br>
+ <strong>預設為 {{jsxref("undefined")}}.</strong></dd>
+ <dt><code>writable</code></dt>
+ <dd><code>若該屬性為 true</code>,則該屬性可透過{{jsxref("Operators/Assignment_Operators", "賦予運算子", "", 1)}}所改變<br>
+ <strong>預設為 <code>false</code>.</strong></dd>
+ <dt><code>get</code></dt>
+ <dd>A function which serves as a getter for the property, or {{jsxref("undefined")}} if there is no getter. The function return will be used as the value of property.<br>
+ <strong>預設為 {{jsxref("undefined")}}.</strong></dd>
+ <dt><code>set</code></dt>
+ <dd>A function which serves as a setter for the property, or {{jsxref("undefined")}} if there is no setter. The function will receive as only argument the new value being assigned to the property.<br>
+ <strong>預設為 {{jsxref("undefined")}}.</strong></dd>
+ </dl>
</dd>
</dl>