参考 toggleClass()

toggleClass()

Toggles whether a class is applied to the element.

示例

语法

toggleClass(c)

参数

c
String:

class name to toggle.

Notice any errors or typos? Please let us know. Please feel free to edit src/dom/dom.js and open a pull request!

相关参考