我爱Aspx >> Asp.Net >> Asp自定义函数参考判断电话号码是否正确函数:
function IsValidTel(para)on error resume nextdim strdim l,iif isNUll(para) then IsValidTel=falseexit functionend ifstr=cstr(para)if len(trim(str))<7 thenIsValidTel=falseexit functionend ifl=len(str)for i=1 to lif not (mid(str,i,1)>="0" and mid(str,i,1)<="9" or mid(str,i,1)="-") thenIsValidTel=false exit functionend ifnextIsValidTel=trueif err.number<>0 then err.clearend function
Ҷƪл˵?
ASP数据库连接[05-20]
ASP中使用存储过程[05-20]
ASP与数据库连接的问题[05-20]
asp溢出漏洞[05-20]
ASP连动下拉列表从数据库读取[05-20]
asp防注入函数[05-20]
ASP中返回上一页[05-20]
asp编程有用的例子(二)[05-20]
ASP程序中同一个用户不允许同时登..[05-20]
asp编程有用的例子(一)[05-20]
ASP数据库连接[05-20]
ASP中使用存储过程[05-20]
ASP与数据库连接的问题[05-20]
asp溢出漏洞[05-20]
ASP连动下拉列表从数据库读取[05-20]
asp防注入函数[05-20]
ASP中返回上一页[05-20]
asp编程有用的例子(二)[05-20]
ASP程序中同一个用户不允许同时登..[05-20]
JavaScript通用表单验证函数[05-20]