importValidationfrom'common/util/validation';letvalidator=newValidation();validator.addByValue('username',[{strategy:'isEmpty',errorMsg:'不能为空'},{strategy:'hasSpace',errorMsg:'不能有空格'}]);constpwdChange=(ev)=>{console.log(ev