setAttribute method
Sets the value of an attribute. Attributes are identified by name.
To set the values of multiple attributes, use the setAttributes method.
setAttribute(attribute, value [, index])
Parameters
String attribute
Specifies the attribute name.
String value
Specifies the attribute value.
int index
[optional] Specifies the repeating attribute index (zero-based).
Returns
void
Throws
CMSException
Raised for any error.
这对您有帮助吗?