
展开全部
<%
function chkChar(str)
flag=false
enChar="a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z"
onChar=split(enChar,",")
for i=0 to ubound(onChar)
if instr(str,onChar(i))<>0 then
flag=true
exit for
end if
next
chkChar=flag
end function
str="中华人民共和国a"
if chkChar(str) then
response.write "含有"
else
response.write "不含"
end if
%>
function chkChar(str)
flag=false
enChar="a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z"
onChar=split(enChar,",")
for i=0 to ubound(onChar)
if instr(str,onChar(i))<>0 then
flag=true
exit for
end if
next
chkChar=flag
end function
str="中华人民共和国a"
if chkChar(str) then
response.write "含有"
else
response.write "不含"
end if
%>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询