jk_email.asp

来自「打开目录ads文件夹 找到top_ads.js文件 用记事本打开后就可以」· ASP 代码 · 共 31 行

ASP
31
字号
<%

'------------------------------------邮件识别--------------------------------------
function email_ok(email,en)
  dim names,name,ei,c
  email_ok=false
  names=split(email,"@")
  if ubound(names)<>1 or email="" then
    exit function
  end if
  for each name in names
    if len(name) <= 0 then
      exit function
    end if
    for ei=1 to len(name)
      c=lcase(mid(name,ei,1))
      if instr("abcdefghijklmnopqrstuvwxyz-_.",c)<= 0 and not(isnumeric(c)) then
        exit function
      end if
    next
    if left(name,1)="." or right(name,1)="." then
      exit function
    end if
  next
  if instr(names(1),".")<=0 or len(email)>en then
    exit function
  end if
  email_ok=true
end function

%>

⌨️ 快捷键说明

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