getAttribute for IE7
getAttribute
大部分介绍都说仅仅有一个。包含w3cschool。
事实上这种方法在iE7下有两个參数。
0 是默认情况,不区分大写和小写!
1 区分大写和小写
Syntax
object.getAttribute(strAttributeName,
lFlags)
Parameters
- strAttributeName [in]
-
Type: String
String that specifies the name of the attribute.
- lFlags [in, optional]
-
Type: Integer
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 strAttributeName must exactly match those in the attribute name.
-
2
-
Returns attribute value as a String. This flag does not work for event properties.
-
4
-
Returns attribute value as a fully expanded URL. Only works for URL attributes.
-
Return value
Type: Variant
Variant that returns a String, Variant of type Integer, or Boolean value as defined by the attribute. If the attribute is not present, this method returns null
.
msdn:http://msdn.microsoft.com/en-us/library/ms536429(VS.85).aspx
最新文章
- angular路由——ui.route
- 设置UITableView的separatorInset值为UIEdgeInsetsZero,分隔线不最左端显示的问题
- zip ubuntu使用
- QT--以共享的方式发布应用,QT依赖库
- CentOS 6.4安装Kangle面板
- 自己写简单CoreDataManager封装对CoreData操作
- 常用抓包指令for wireshark or tcpdump
- Sublime Text3一些安装和使用技巧
- Java引用数据类型
- css3布局相关(持续更新)
- IDEA使用01 创建java项目、创建web项目
- Aurora Player 开源啦~~~
- XamarinSQLite教程在Xamarin.Android项目中定位数据库文件
- 微擎系统 微信支付 get_brand_wcpay_request:fail
- 关于整型Integer、Int32、Int64、IntPtr、UINT、UInt32、Cardinal、UInt64、UIntPtr、NativeUInt、Pointer、Handle
- python中round(四舍五入)的坑
- mongodb启用Profiling定位问题
- Iphone 消息通知(APNS)的3种方式 -- C# 和 nodejs
- Unix 网络编程 dup和dup2函数
- charles_https_通过模拟器安装APP然后抓包