标签:
validType:‘length[4,15]‘,events:{blur: function(){}}
$.extend($.fn.validatebox.defaults.rules, { maxLength: { validator: function(value, param){ return param[0] >= getStrLeng(value); }, message: ‘输入的文字太长啦!‘ }, loginNameCheck: { validator: function(value){ var flag; console.log(value); $.ajax({ type: ‘POST‘, url : ‘api/index/checkLoginUser/‘ + value, async : false, success: function(data) { console.log(data); flag = data; } }); return flag; }, message: ‘输入的用户名已存在‘ } });
标签:
原文地址:http://www.cnblogs.com/zziy/p/5404341.html