util.js
来自「达内CRM培训项目java源码:主要系统功能 1 用户登录 2 客户管理」· JavaScript 代码 · 共 29 行
JS
29 行
function validate(thisForm){
if(thisForm.logToFile.checked && (trim(thisForm.fileName.value)==null)){
alert("文件名不能为空,请填写!");
thisForm.fileName.focus();
return false;
}
if(thisForm.logToMail.checked){
if(trim(thisForm.mailList.value) == null){
alert("E-mail不能为空,请填写!");
thisForm.mailList.focus();
return false;
}else if(!isMail(trim(thisForm.mailList.value))){
alert("含有错误的E-mail地址,请修改!");
thisForm.mailList.select();
thisForm.mailList.focus();
return false;
}
if(trim(thisForm.SMTPHost.value) == null){
alert("SMTP服务器不能为空,请填写!");
thisForm.SMTPHost.focus();
return false;
}
}
return true;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?