removeAttribute
从指定的元素中移除一个属性 removes an attribute from the specified element.
Syntax
element.removeAttribute( attrName)
attrName
是一个存在于 element 中的属性字符串 is a string that names the attribute to be removed from element .
removeAttribute
从指定的元素中移除一个属性 removes an attribute from the specified element.
element.removeAttribute( attrName)
attrName
是一个存在于 element 中的属性字符串 is a string that names the attribute to be removed from element .
Element
Element.accessKey
Element.attributes
ParentNode.childElementCount
ParentNode.children
Element.classList
Element.className
Element.clientHeight
Element.clientLeft
Element.clientTop
Element.clientWidth
ParentNode.firstElementChild
Element.id
Element.innerHTML
ParentNode.lastElementChild
Element.name
NonDocumentTypeChildNode.nextElementSibling
Element.onwheel
Element.outerHTML
NonDocumentTypeChildNode.previousElementSibling
Element.scrollHeight
Element.scrollLeft
Element.scrollLeftMax
Element.scrollTop
Element.scrollTopMax
Element.scrollWidth
Element.tagName
Element.closest()
Element.getAttribute()
Element.getAttributeNode()
Element.getAttributeNodeNS()
Element.getAttributeNS()
Element.getBoundingClientRect()
Element.getClientRects()
Element.getElementsByClassName()
Element.getElementsByTagName()
Element.getElementsByTagNameNS()
Element.hasAttribute()
Element.hasAttributeNS()
Element.hasAttributes()
Element.insertAdjacentHTML()
Element.matches()
Element.querySelector()
Element.querySelectorAll()
ChildNode.remove()
Element.removeAttribute()
Element.removeAttributeNode()
Element.removeAttributeNS()
Element.requestFullscreen()
Element.requestPointerLock()
Element.scrollIntoView()
Element.setAttribute()
Element.setAttributeNode()
Element.setAttributeNodeNS()
Element.setAttributeNS()
Element.setCapture()
Attr
CDATASection
CharacterData
ChildNode
Comment
CustomEvent
DOMConfiguration
DOMError
DOMErrorHandler
DOMException
DOMImplementation
DOMImplementationList
DOMImplementationRegistry
DOMImplementationSource
DOMLocator
DOMObject
DOMParser
DOMString
DOMTimeStamp
DOMTokenList
DOMUserData
Document
DocumentFragment
DocumentType
ElementTraversal
Entity
EntityReference
Event
EventTarget
HTMLCollection
MutationObserver
Node
NodeFilter
NodeIterator
NodeList
NonDocumentTypeChildNode
ProcessingInstruction
PromiseResolver
Range
Selection
Text
TextDecoder
TextEncoder
TimeRanges
TreeWalker
TypeInfo
UserDataHandler
XMLDocument