返回教程:DOM 教程

TRY RUN / 在线示例

DOM 教程 通过使用 setAttribute 来改变属性值

DOM 教程 通过使用 setAttribute 来改变属性值

源代码
运行结果