Questions tagged «toggleclass»

7
在jQuery中切换2个类的最简单方法
如果我有.A类和.B类,并且想在单击按钮之间进行切换,那么jQuery中有什么好的解决方案?我还是不明白如何toggleClass()运作。 是否有内联的解决方案以将其置于onclick=""事件中?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.