diff options
author | t7yang <t7yang@gmail.com> | 2022-01-10 08:38:06 +0800 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2022-02-16 02:35:54 +0800 |
commit | f7b137a3dff09fb8f976140d16029ad6ec5cf2b5 (patch) | |
tree | ae0836eb0104a5870f1a87f1f3320a3d506c9e17 /files/zh-tw/web/javascript/guide | |
parent | 01b0e12ba27b5069248fd09235e9a7143915ee30 (diff) | |
download | translated-content-f7b137a3dff09fb8f976140d16029ad6ec5cf2b5.tar.gz translated-content-f7b137a3dff09fb8f976140d16029ad6ec5cf2b5.tar.bz2 translated-content-f7b137a3dff09fb8f976140d16029ad6ec5cf2b5.zip |
remove id attribute not in heading for zh-TW
Diffstat (limited to 'files/zh-tw/web/javascript/guide')
3 files changed, 5 insertions, 5 deletions
diff --git a/files/zh-tw/web/javascript/guide/details_of_the_object_model/index.html b/files/zh-tw/web/javascript/guide/details_of_the_object_model/index.html index f018d78c68..cb088eebb8 100644 --- a/files/zh-tw/web/javascript/guide/details_of_the_object_model/index.html +++ b/files/zh-tw/web/javascript/guide/details_of_the_object_model/index.html @@ -239,7 +239,7 @@ public class Engineer extends WorkerBee { <p>{{ note('術語 <em><em>實例(instance)</em></em>在 基於類的語言中具有特定的技術含義。在這些語言中,實例是指類的個體成員,與類有著根本性的不同。在 JavaScript 中,“實例”並不具有這種技術含義,因為 JavaScript 中不存在類和實例之間的這種差異。然而,在談論 JavaScript 時,“實例”可以非正式地用於表示用特定的建構函數創建的物件。所以,在這個例子中,你可以非正式地 <code>jane</code> 是 <code>Engineer</code> 的一個實例。與之類似,儘管術語<em>父(parent)</em>,<em>子(child)</em>,<em>祖先(ancestor)</em>,和<em>後代(descendant)</em>在 JavaScript 中並沒有正式的含義,您可以非正式地使用這些術語用於指代原型鏈中處於更高層次或者更低層次的物件。') }}</p> <p><img alt="figure8.3.png" class="default internal" id="figure8.3" src="/@api/deki/files/4403/=figure8.3.png"><br> - <a id="8.3" name="8.3"><small><strong>圖例 8.3:通過簡單的定義創建物件</strong></small></a></p> + <a name="8.3"><small><strong>圖例 8.3:通過簡單的定義創建物件</strong></small></a></p> <h2 id="物件的屬性">物件的屬性</h2> @@ -292,8 +292,8 @@ mark.projects = ["navigator"];</pre> <p>到目前為止所展現的建構函數不允許在創建新的實例時指定屬性值。正如 Java 一樣,可以為建構函數提供參數以便初始化實例的屬性值。下圖展現其中一種做法。</p> -<p><img alt="" class="internal" id="figure8.5" src="/@api/deki/files/4423/=figure8.5.png" style="height: 481px; width: 1012px;"><br> - <a id="8.5" name="8.5"><small><strong>Figure 8.5: Specifying properties in a constructor, take 1</strong></small></a></p> +<p><img alt="" class="internal" src="/@api/deki/files/4423/=figure8.5.png" style="height: 481px; width: 1012px;"><br> + <a name="8.5"><small><strong>Figure 8.5: Specifying properties in a constructor, take 1</strong></small></a></p> <p>下面的表格中羅列了這些物件在 Java 和 JavaScript 中的定義。</p> diff --git a/files/zh-tw/web/javascript/guide/grammar_and_types/index.html b/files/zh-tw/web/javascript/guide/grammar_and_types/index.html index a8eafbba5f..7299e5d1c6 100644 --- a/files/zh-tw/web/javascript/guide/grammar_and_types/index.html +++ b/files/zh-tw/web/javascript/guide/grammar_and_types/index.html @@ -304,7 +304,7 @@ y = 42 + " is the answer" // "42 is the answer" <p>當代表數字的值以字串形式存在記憶體中,有些方法可用來將這種字串轉換成整數或浮點數。 </p> <ul> - <li id="parseInt()_and_parseFloat()">{{jsxref("parseInt", "parseInt()")}}</li> + <li>{{jsxref("parseInt", "parseInt()")}}</li> <li>{{jsxref("parseFloat", "parseFloat()")}}</li> </ul> diff --git a/files/zh-tw/web/javascript/guide/working_with_objects/index.html b/files/zh-tw/web/javascript/guide/working_with_objects/index.html index 823f9c1e4b..44bda4c9b8 100644 --- a/files/zh-tw/web/javascript/guide/working_with_objects/index.html +++ b/files/zh-tw/web/javascript/guide/working_with_objects/index.html @@ -124,7 +124,7 @@ myCar.year = 1969</pre> <p>JavaScript has a number of predefined objects. In addition, you can create your own objects. You can create an object using an <a href="/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer">object initializer</a>. Alternatively, you can first create a constructor function and then instantiate an object invoking that function in conjunction with the <code>new</code> operator.</p> -<h3 id="Using_object_initializers"><a id="Object_initializers" name="Object_initializers">Using object initializers</a></h3> +<h3 id="Using_object_initializers"><a name="Object_initializers">Using object initializers</a></h3> <p>In addition to creating objects using a constructor function, you can create objects using an <a href="/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer">object initializer</a>. Using object initializers is sometimes referred to as creating objects with literal notation. "Object initializer" is consistent with the terminology used by C++.</p> |