通过查找整个 HTML 文档中的任何 HTML 元素,传回指定名称的元素集合。
Then, it finds all the command arguments using getElementsByTagName.
然后,它使用 getElementsByTagName 寻找所有命令参数。
The problem is that getElementsByTagName recursively traverses the document, returning all matching nodes.
getelementsbytagname递归地遍历文档,返回所有匹配的节点。
The getElementsByTagName() method searches within the node for elements with the corresponding name and returns them in a NodeList object.
getElementsByTagName() 方法根据相应的名称在节点中搜索对应的元素,并通过 NodeList 对象返回它们。
通过查找整个 HTML 文档中的任何 HTML 元素,传回指定名称的元素集合。
应用推荐