📄 util.js
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -