classie

:tophat: class helper functions

  • 所有者: desandro/classie
  • 平台:
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

classie - class helper functions

Ripped from bonzo :heart: @ded

No longer supported

Use classie only if you need to support older browsers that do not support classList. classList is supported in IE10+, Android 3+, iOS Safari 5.1+, and modern evergreen browsers. Can I use classList?

classie is longer supported. v1.0.1 is the final version.

Usage

classie.has( element, 'my-class' ) // returns true/false
classie.add( element, 'my-new-class' ) // add new class
classie.remove( element, 'my-unwanted-class' ) // remove class
classie.toggle( element, 'my-class' ) // toggle class

Package management

Install with Bower :bird: bower install classie

Install with npm npm install desandro-classie

Install with Component component install desandro/classie

MIT license

classie is released under the MIT license.

主要指標

概覽
名稱與所有者desandro/classie
主編程語言JavaScript
編程語言JavaScript (語言數: 1)
平台
許可證
所有者活动
創建於2013-01-24 19:32:06
推送於2016-05-11 21:26:46
最后一次提交2016-04-12 09:57:23
發布數6
最新版本名稱v1.0.1 (發布於 2014-04-14 22:20:21)
第一版名稱v0.0.1 (發布於 2013-01-24 14:30:48)
用户参与
星數864
關注者數33
派生數181
提交數25
已啟用問題?
問題數12
打開的問題數0
拉請求數6
打開的拉請求數0
關閉的拉請求數8
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?