标签:handle NPU static ref script nbsp icheck check http
1、引入
文件iCheck自己下载;
<link rel="stylesheet" href="/static/assets/plugins/iCheck/all.css"> <script src="/static/assets/plugins/iCheck/icheck.min.js"></script>
2、激活
var Ichick = function(){
var handle = function() {
$(‘input[type="checkbox"].flat-red, input[type="radio"].flat-red‘).iCheck({
checkboxClass: ‘icheckbox_flat-green‘,
radioClass : ‘iradio_flat-green‘
})
}
return{
init:function(){
handle();
}
}
}();
$(document).ready(function () {
Ichick.init();
})
<input type="checkbox" class="flat-red">
参考样式:

标签:handle NPU static ref script nbsp icheck check http
原文地址:https://www.cnblogs.com/yanxiaoge/p/10885406.html