⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 util.js

📁 选择和管理有价值客户及其关系的一种商业策略
💻 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 + -