返回教程:DOM 教程
源代码
运行结果
TRY RUN / 在线示例
DOM 教程 使用 createAttribute 创建属性节点
DOM 教程 使用 createAttribute 创建属性节点