hasAttributes method
Returns whether this node (if it is an element) has any attributes.
hasAttributes( )
Parameters
None
Returns
trueboolean. if this node has any attributes, false otherwise.
这对您有帮助吗?