当前位置: 代码迷 >> Web前端 >> DOM-hasAttribute步骤
  详细解决方案

DOM-hasAttribute步骤

热度:38   发布时间:2012-07-26 12:01:08.0
DOM-hasAttribute方法

DOM hasAttribute()方法

?

?? ----- ?如果当前元素节点有指定的属性,返回true,否则返回false

?

/*
@param name 必须的属性
*/
hasAttribute(name);

?

?

兼容性知识:

?

IE6 | IE7 不支持这个api

?

  相关解决方案