目录
当前位置: 首页 > 文档资料 > Snap.svg 英文文档 >

Element.toggleClass(value, flag)

优质
小牛编辑
129浏览
2023-12-01

Add or remove one or more classes from the element, depending on either the class’s presence or the value of the flag argument.

Parameters

  1. valuestringclass name or space separated list ofclass names
  2. flagbooleanvalue to determine whether the classshould be added or removed

Returns: Element original element.