当前位置 : 主页 > 网页制作 > Dojo >

dojo/dom-attr的用法

来源:互联网 收集:自由互联 发布时间:2021-06-15
method summary: get (node, name) Gets an attribute on an HTML element. getNodeProp (node, name) Returns an effective value of a property or an attribute. has (node, name) Returns true if the requested attribute is specified on the given ele

method summary:

  • get(node, name) Gets an attribute on an HTML element.
  • getNodeProp(node, name) Returns an effective value of a property or an attribute.
  • has(node, name) Returns true if the requested attribute is specified on the given element, and false otherwise.
  • remove(node, name) Removes an attribute from an HTML element.
  • set(node, name, value) Sets an attribute on an HTML element.

来源于dojo官网:http://dojotoolkit.org.sixxs.org/api/1.9/dojo/dom-attr

上一篇:dojo/dom-class用法
下一篇:dojo/query的使用
网友评论