运行代码
(Shift+Enter)
HTML教程
奔月教程(runoon.com)
HTMLCollection item() 方法
第一个 p 元素
第二个 p 元素
第三个 p 元素
点击按钮修改所有 class="myclass" 元素的内容并添加背景颜色:
点我
运行结果