dojo/dom-class用法

前端之家收集整理的这篇文章主要介绍了dojo/dom-class用法前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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相关文章