关于getAttribute的参数

vAttrValue = object.getAttribute(sAttrName [, iFlags])
Parameters

sAttrName Required. String that specifies the name of the attribute.
iFlags Optional. Integer that specifies one or more of the following flags:

0  --->  Default. Performs a property search that is not case-sensitive, and returns an interpolated value if the property is found.

1  --->  Performs a case-sensitive property search. To find a match, the uppercase and lowercase letters in sAttrName must exactly match those in the attribute name. If the iFlags parameter for getAttribute is set to 1 and this option is set to 0 (default), the specified property name might not be found.


2   --->  Returns the value exactly as it was set in script or in the source document.

你可能感兴趣的:(attribute)