chkreg.js

来自「AspEase Auction System Ver2.0/动易拍卖系统 Ver」· JavaScript 代码 · 共 34 行

JS
34
字号
<!--
function isok(theform)
{
if (theform.username.value=="")
  {
    alert("用户名不能为空!");
    theform.username.focus();
    return (false);
  }

if (theform.email.value=="")
  {
    alert("email不能为空!");
    theform.email.focus();
    return (false);
  }

if (theform.email.value.indexOf("'",0) >= 0 || theform.email.value.indexOf(" ",0) >= 0)
    {
        alert("电子邮件中不能包含空格,单引号等非法字符!")
        theform.email.focus()
        return false
    }
if (theform.email.value.indexOf("@",0) < 0 || theform.email.value.indexOf(".",0) < 0)
    {
        alert("邮件地址错误!")
        theform.email.focus()
        return false
    }


return (true);
}
-->

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?