MozTW 討論區
https://forum.moztw.org/

"return" 如何翻?
https://forum.moztw.org/viewtopic.php?f=17&t=9288
1 頁 (共 1 頁)

發表人:  danielwang [ 2005-07-08, 05:56 ]
文章主題 :  "return" 如何翻?

For accessing a group of elements, the DOM specification also includes getElementsByTagName, which returns a list of all the elements with the given tag name in the order they appear in the document:
對於一組元素的存取, DOM 規格書也包括了 getElementsByTagName,這 returns 所有有某標籤名的元素,依文件內出現的順序排:

發表人:  softcup [ 2005-07-08, 08:17 ]
文章主題 : 

danielwang 寫:
For accessing a group of elements, the DOM specification also includes getElementsByTagName, which returns a list of all the elements with the given tag name in the order they appear in the document:
對於一組元素的存取, DOM 規格書也包括了 getElementsByTagName,這 returns 所有有某標籤名的元素,依文件內出現的順序排:

以程式的觀點,我會說是「傳回」或「回傳」。
仔細看了一下原文,覺的有點怪怪的。
getElementsByTagName 會回傳所有你指定的 Tag (elements),並且依文件內出現的先後順序排列。
所以「一組元素」,感覺好像只有兩個,應該是一群相同 Tag 的 elements (元素)。

發表人:  danielwang [ 2005-07-08, 08:52 ]
文章主題 : 

在一個: this returns an object reference to the uniquely identified element 的 "uniquely identified" 的中文是...?

順道問一下,你們上的去 wiki.w3china.org 嗎?

順道問一下,是「在一個」還是「再一個」?

發表人:  訪客 [ 2005-07-08, 09:00 ]
文章主題 : 

返回

不知道可不可以?

發表人:  danielwang [ 2005-07-08, 11:47 ]
文章主題 : 

在一個: "The assumption here is that the SPAN has a single, text child;"

"child text" 是子文字,那 "text child" 是...?

發表人:  kourge [ 2005-07-08, 22:31 ]
文章主題 : 

text child 應該是 "屬於文字的子項目"
另外 return 通常設計程式的人都稱之為 "傳回",通常在 "呼叫"(call) 某個 "函式"(function) 之後會 "傳回"(return) 某種 "型態"(type) 的 "資料"(data)。

1 頁 (共 1 頁) 所有顯示的時間為 UTC + 8 小時
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/