日期:2014-05-16 浏览次数:20475 次
var obj = { companyname:function(option){ var format = validateRules.isCompanyname(option.value); var length = validateRules.betweenLength(option.value,1,50); var opt = option; if(!format || !length){ if(!format) opt.errInfo = option.prompts.error.badFormat; if(!length) opt.errInfo = option.prompts.error.badLength; validateFunction.errorfunc(opt); }else{ validateFunction.succefunc(option); } }//companyname end ,companyaddr:function(option){ var format = validateRules.isCompanyname(option.value); var length = validateRules.betweenLength(option.value,1,50); var opt = option; if(!format || !length){ if(!format) opt.errInfo = option.prompts.error.badFormat; if(!length) opt.errInfo = option.prompts.error.badLength; validateFunction.errorfunc(opt); }else{ validateFunction.succefunc(option); } } }
var obj = { companyname:function(option){ var format = validateRules.isCompanyname(option.value); var length = validateRules.betweenLength(option.value,1,50); var opt = option; if(!format || !length){ if(!format) opt.errInfo = option.prompts.error.badFormat; if(!length) opt.errInfo = option.prompts.error.badLength; validateFunction.errorfunc(opt); }else{ validateFunction.succefunc(option); } }//companyname end ,companyaddr:this.companyname }
var obj = { companyname:function(option){ var format