运行代码
(Shift+Enter)
HTML教程
奔月教程(runoon.com)
HTMLCollection 对象
使用 getElementsByTagName() 方法获取 HTMLCollection 对象。
这个页面上 p 元素是数量为:
运行结果