首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

DOMElement::hasAttribute

(PHP 5, PHP 7)

DOMElement :: hasAttribute - 检查属性是否存在

描述

代码语言:javascript
复制
public bool DOMElement::hasAttribute ( string $name )

指示名称是否name存在为元素的成员。

参数

name

属性名称。

返回值

TRUE成功或FALSE失败时返回。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com