easyUI 验证小记

if($.trim(address).length>0){
   let editor0 = getEditors[0];
   $(editor0.target).val(address);
   $(editor0.target).validatebox('disableValidation')
}
if($.trim(email).length>0){
   let editor1 = getEditors[1];
   $(editor1.target).val(email);
   $(editor1.target).validatebox('disableValidation')
}
if($.trim(period).length>0){
   let editor2 = getEditors[2];
   $(editor2.target).numberbox("setValue",period);
   $(editor2.target).numberbox({ novalidate: false });
}
if($.trim(period).length>0){
   let editor3 = getEditors[3];
   $(editor3.target).combobox("setValue",0);
}

Guess you like

Origin blog.csdn.net/zhanglixin999/article/details/121427560