weui 问题
1、阻止checkbox 被 checked
方法1:
$('.weui-check').on('click', function(e){
$(this).attr('disabled', true);
$(this).removeAttr('disabled');
})
方法2:
$('.weui-check').on('click', function(e){
e.preventDefault()
})
注意:检查zepto.js 是否添加了相应模块
1、阻止checkbox 被 checked
方法1:
$('.weui-check').on('click', function(e){
$(this).attr('disabled', true);
$(this).removeAttr('disabled');
})
方法2:
$('.weui-check').on('click', function(e){
e.preventDefault()
})
注意:检查zepto.js 是否添加了相应模块