客户帐号不能为空:

<Listeners>
<Click Handler="
if(!#{txtNetUserName}.validate()) {
Ext.Msg.alert('警告','客户帐号不能为空!');
return false;
}
" />
</Listeners>

 

两次密码必须一致:

if(!#{txtPwd1}.validate() || !#{txtPwd2}.validate()) {
Ext.Msg.alert(
'警告','新密码不能为空!');
return false;
}
if(#{txtPwd1}.getValue()!=#{txtPwd2}.getValue()) {
Ext.Msg.alert(
'警告','两次密码不一致!');
return false;
}

 

文本中的值不可等于某些内容:

if(#{cboServerType}.getValue()!='咨询' && #{cboServerType}.getValue()!='开通'){
Ext.Msg.alert(
'警告','输入错误!');
return false;
}

 

 

 

 

 

 

相关文章:

  • 2021-11-01
  • 2022-12-23
  • 2021-12-19
  • 2022-01-31
  • 2021-06-03
  • 2021-09-18
  • 2022-12-23
猜你喜欢
  • 2021-06-02
  • 2021-08-07
  • 2022-12-23
  • 2021-07-27
  • 2021-06-10
  • 2022-01-31
相关资源
相似解决方案