SyntaxvAttrValue = object.getAttribute(sAttrName [, iFlags])
ParameterssAttrName 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.
Return ValueVariant that returns a String, number, or Boolean value as defined by the attribute. If the attribute is not present, this method returns null.
ParameterssAttrName 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.
Return ValueVariant that returns a String, number, or Boolean value as defined by the attribute. If the attribute is not present, this method returns null.
[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.
[Return Value] [Variant] that returns a String, number, or Boolean value as defined by the attribute. If the attribute is not present, this method returns null.===========
根据MSDN加上间隔,这样你看得懂了吧?
[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.
[Return Value] [Variant] that returns a String, number, or Boolean value as defined by the attribute. If the attribute is not present, this method returns null.===
居然漏一处。呵呵。