浏览器加不加前缀对你有影响吗?如果你在代码里面获得属性值,可以用下面的方式: iFlags = 2说明: ========================== vAttrValue = 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.
实际的值就是'http://localhost/Images/a.jpg
iFlags = 2说明:
==========================
vAttrValue = 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.
src本就是一个路径的,
一个完整路径的,
不能取到你想要的值,不过人可以换一种方式 来作