$.extend($.fn.validatebox.defaults.rules, {
minLength: {
validator: function(value, param){
return value.length >= param[0] & value.length <= param[0];
},
message: '请输入3位数的数字'
}
});
<input name="??" class="easyui-validatebox" data-options="validType:'minLength[3]'">
标签:验证,validatebox,param,length,value,输入 From: https://www.cnblogs.com/dw166/p/16888111.html