$(document).on('input propertychange', '.peacetimescore', function(){
if($(this).val()>20 || $(this).val()<0){
layer.msg("请输入0-20之间的成绩");
$(this).val("0").trigger('change');//这句话可以实现更新到model;
}
});
$(document).on('input propertychange', '.peacetimescore', function(){
if($(this).val()>20 || $(this).val()<0){
layer.msg("请输入0-20之间的成绩");
$(this).val("0").trigger('change');//这句话可以实现更新到model;
}
});