jquery实现的Switch开关按钮插件,可用作切换按钮。
// 初始化 $('input.form_switch').each(function(idx, el) { $(this).Switch().addClass('class_name'); }) // 打开 $('.switch_open').on('click', function() { $('.sw_sdsd6').Switch('set', { checked: true }); }) // 关闭 $('.switch_close').on('click', function() { $('.sw_sdsd6').Switch('set', { checked: false }); }) // 切换反回 $(document).on('switch:sw_sdsd6', function(e, s) { console.log('当前切换:' + s) });
jquery Switch开关按钮插件
正在加载文件目录...
- 热度 38
![](https://imgs.bootstrapmb.com/2022/4/061224090.jpg)
E灯下载了 此素材
![](https://imgs.bootstrapmb.com/2022/4/091106192.jpg)
零落,如故下载了 此素材
![](https://imgs.bootstrapmb.com/2022/4/271055217.jpg)
former下载了 此素材
![](https://imgs.bootstrapmb.com/2023/8/300843353.jpg)
一颗滚石下载了 此素材
![](https://imgs.bootstrapmb.com/2023/8/070304067.jpg)
Thorn、下载了 此素材
![](https://imgs.bootstrapmb.com/2022/3/260659576.jpg)
mxp下载了 此素材
![](https://imgs.bootstrapmb.com/2020/3/090556099.jpg)
王友佳下载了 此素材
![](https://imgs.bootstrapmb.com/2020/4/290335471.jpg)
卓越下载了 此素材
![](https://imgs.bootstrapmb.com/2020/3/090556099.jpg)
王友佳下载了 此素材
![](https://imgs.bootstrapmb.com/2019/2/130944519.jpg)
米米下载了 此素材