setAttribute():指定名称与对象设置属性。getAttribute():指定名称取得属性。getAttributeNames():取得所有属性名称。removeAttribute():指定名称移除属性。 转载于:https://www.cnblogs.com/yc0735/p/7376531.html