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

dojo/dom-class用法

来源:互联网 收集:自由互联 发布时间:2021-06-15
Method Summary add (node, classStr) Adds the specified classes to the end of the class list on the passed node. contains (node, classStr) Returns whether or not the specified classes are a portion of the class list currently applied to the

Method Summary 

  • add(node, classStr) Adds the specified classes to the end of the class list on the passed node.
  • contains(node, classStr) Returns whether or not the specified classes are a portion of the class list currently applied to the node.
  • remove(node, classStr) Removes the specified classes from node.
  • replace(node, addClassStr, removeClassStr) Replaces one or more classes on a node if not present.
  • toggle(node, classStr, condition) Adds a class to node if not present, or removes if present.
上一篇:dojo 文本验证
下一篇:dojo/dom-attr的用法
网友评论