dojo/dom-class用法

来源:互联网 发布:笔趣阁软件最新版 编辑:程序博客网 时间:2024/05/01 23:30

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.