主页
JS 参考手册
HTMLCollection item() 方法
tryjsref_htmlcollection_item_p
运行 ❯
×
更改方向
保存代码
更改主题
HTMLCollection item() 方法
使用 item() 方法获取 DIV 中的第一个 P 元素。
div 中的第一个 p 元素。
div 中的另一个 p 元素。
div 中的第三个 p 元素。
点击按钮获取P元素的内容:
获取内容