aboutsummaryrefslogtreecommitdiff
path: root/files/zh-tw/glossary/property
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:43:23 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:43:23 -0500
commit218934fa2ed1c702a6d3923d2aa2cc6b43c48684 (patch)
treea9ef8ac1e1b8fe4207b6d64d3841bfb8990b6fd0 /files/zh-tw/glossary/property
parent074785cea106179cb3305637055ab0a009ca74f2 (diff)
downloadtranslated-content-218934fa2ed1c702a6d3923d2aa2cc6b43c48684.tar.gz
translated-content-218934fa2ed1c702a6d3923d2aa2cc6b43c48684.tar.bz2
translated-content-218934fa2ed1c702a6d3923d2aa2cc6b43c48684.zip
initial commit
Diffstat (limited to 'files/zh-tw/glossary/property')
-rw-r--r--files/zh-tw/glossary/property/index.html13
-rw-r--r--files/zh-tw/glossary/property/javascript/index.html22
2 files changed, 35 insertions, 0 deletions
diff --git a/files/zh-tw/glossary/property/index.html b/files/zh-tw/glossary/property/index.html
new file mode 100644
index 0000000000..50ccfe72ce
--- /dev/null
+++ b/files/zh-tw/glossary/property/index.html
@@ -0,0 +1,13 @@
+---
+title: 屬性
+slug: Glossary/property
+tags:
+ - Disambiguation
+ - Glossary
+ - NeedsTranslation
+ - TopicStub
+translation_of: Glossary/property
+---
+<p>根據所屬情境的不同,「屬性(<strong>Property</strong>)」可代表不同的意思。可能是:</p>
+
+<p>{{GlossaryDisambiguation}}</p>
diff --git a/files/zh-tw/glossary/property/javascript/index.html b/files/zh-tw/glossary/property/javascript/index.html
new file mode 100644
index 0000000000..8bd94bccf9
--- /dev/null
+++ b/files/zh-tw/glossary/property/javascript/index.html
@@ -0,0 +1,22 @@
+---
+title: Property (JavaScript)
+slug: Glossary/property/JavaScript
+translation_of: Glossary/property/JavaScript
+---
+<p><strong>property</strong>(屬性)是典型的物件特徵,經常與資料結構聯結。屬性分為兩種類型:</p>
+
+<ul>
+ <li><em>實體屬性(Instance properties)</em>:保存的資料只於特定的物件實體中。</li>
+ <li><em>靜態屬性(Static Properties)</em>:保存的資料為所有該型別物件所共有。</li>
+</ul>
+
+<p>屬性擁有一個名字(為{{glossary("string", "字串")}})以及值(可以是{{glossary("primitive", "基本資料型別")}}、{{glossary("method", "方法")}}或是{{glossary("object reference", "物件參考")}})。請注意,當我們說「一個屬性保存著物件」,其實是指「一個屬性保存著物件的<em>參考(reference)</em>」。這其中的差別在於,當你改變屬性中的值的時候,所指向的物件實體之值也會改變。</p>
+
+<h2 id="了解詳情">了解詳情</h2>
+
+<h3 id="基本知識">基本知識</h3>
+
+<ul>
+ <li>維基百科的 {{InterWiki('wikipedia','Property (programming)')}}</li>
+ <li><a href="https://developer.mozilla.org/zh-TW/docs/Web/JavaScript/Introduction_to_Object-Oriented_JavaScript">JavaScript 物件導向介紹</a></li>
+</ul>