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.

解决方案 »

  1.   

    获取某个属性的值(true表属性区分大小写)详见dHTML手册。
      

  2.   

    [Syntax]    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. 
     [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加上间隔,这样你看得懂了吧?
      

  3.   

    [Syntax]    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. 
     [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.===
    居然漏一处。呵呵。