Images/Function.Js
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
function checkspace(checkstr) {
var str = '';
for(i = 0; i < checkstr.length; i++) {
str = str + ' ';
}
return (str == checkstr);
}
function bookcheck()
{
if(checkspace(document.myform.username.value)) {
document.myform.username.focus();
alert("请填写您的姓名!");
return false;
}
if(checkspace(document.myform.age.value)) {
document.myform.age.focus();
alert("请填写您的年龄!");
return false;
}
if(checkspace(document.myform.nian.value)) {
document.myform.nian.focus();
alert("请填写您的出生年份!");
return false;
}
if(checkspace(document.myform.yue.value)) {
document.myform.yue.focus();
alert("请填写您的出生月份!");
return false;
}
if(checkspace(document.myform.ri.value)) {
document.myform.ri.focus();
alert("请填写您的出生日期!");
return false;
}
if(checkspace(document.myform.banji.value)) {
document.myform.banji.focus();
alert("请您选择班级!");
return false;
}
if(checkspace(document.myform.kecheng.value)) {
document.myform.kecheng.focus();
alert("请您选择报名课程!");
return false;
}
if(checkspace(document.myform.lianxi.value)) {
document.myform.lianxi.focus();
alert("请填写您的联系方式!");
return false;
}
if(checkspace(document.myform.email.value)) {
document.myform.email.focus();
alert("请填写您的电子邮件!");
return false;
}
if(checkspace(document.myform.dianhua.value)) {
document.myform.dianhua.focus();
alert("请填写您的联系电话!");
return false;
}
后面还有 64 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。