DOM对象 怎么使用 removeattribute方法
1、创建一个名称为 removeAttribute 的html文件

3、添加一个button按钮,在点击事件中加入自定义函数myremoveAttribute添加一p标签,设置id 为 showremoveAttribute
4、创建一个自定义函数 myremoveAttribute

6、在浏览器中打开文件,点击button查看效果

1、创建一个名称为 removeAttribute 的html文件
3、添加一个button按钮,在点击事件中加入自定义函数myremoveAttribute添加一p标签,设置id 为 showremoveAttribute
4、创建一个自定义函数 myremoveAttribute
6、在浏览器中打开文件,点击button查看效果