 
						更新时间:2021-03-15 21:54:38
引用:
| 1 2 | <scriptsrc="./Switch/Switch.js"type="text/javascript"charset="utf-8"></script> | 
初始化:
| 1 | $('input.form_switch').Switch().addClass('class_name'); | 
Html:
| 1 | <inputtype="switch"data- data-left="开"data-right="关"data-checked="true"data-value="1,2"data-icon=""data-id="sw_ipt"data-name="switch"data-bg="bg_grey"> | 
获取返回值:
| 1 2 3 | $(document).on('switch:sw_sdsd1', function(e, s) {    console.log('当前切换:'+ s)}); | 
特别申明:
			本站所有资源都是由网友投稿发布,或转载各大下载站,请自行检测软件的完整性!
			本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!
			如有侵权请联系我们删除下架,联系方式:lei1294551502@163.com