setAttribute method
Set an attribute.
setAttribute(attributeName value)
Parameters
String attributeName The DOMString giving the name of the attribute. String value
The new value for the attribute.
Returns
void
Throws
TableException
INVALID_ATTRIBUTE_ERR: Raised if the attributeName is not valid for this object or the value is invalid for the attribute.
这对您有帮助吗?