switchClass 介绍
This VERY simple plugin provides functionality similar to jQuery’s built in
toggleClass() function, but instead of adding/removing a single class from an
element, switchClass toggles between TWO classes ensuring that one and only
one of the two classes is assigned to an element (or elements) at one time. It
leaves all other element classes untouched and only affects the two classes
specified.
In practical terms, one example usage would be for toggling a table row’s
class from “odd” to “even” classes after a row has been deleted.
switchClass 官网
http://plugins.jquery.com/project/switchClass
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。