8.12.5 Attributes 接口
8.12.5 Attributes 接口Attributes对象实现了一部分映射协议,包括copy(),get(),had_key(),items(),keys()
还有values()方法。另外还提供了一下的方法:
getLength()
返回属性的数量
getNames()
返回属性的名字
getType(name)
返回名为name的属性的类型,类型一般是'CDATA'.
getValue(name)
返回名为name的属性的值
[url=http://bugway.cn]BlackBal[/url]l翻译,拙劣之处请不吝赐教。E-mail: [email]bugway@gmail.com[/email]
页:
[1]