The jQuery toggleClass() method is used to toggle between adding and removing one or more classes from the selected elements. className: A string representing one or more class names to be toggled.
You can create a release to package software, along with release notes and links to binary files, for other people to use. Learn more about releases in our docs.
但当toggle(),不带参数时,与show()和hide()的作用一样,切换元素的可见状态,如果元素是可见的,则切换为隐藏状态;如果元素是隐藏的则切换为可见状态,此时括号内可添加()毫秒(如1000)等),slow,normal,fast等; toggleClass( )与toggle( )差不多,如果里面含有class样式则移除 ...