ASP判断中文字符串
<%'判断输入是否带有中文 有则返回"true",无则返回"false"
function HasChinese(str) 
HasChinese=false 
dim i 
for i=1 to Len(str) 
if Ascw(Mid(str,i,1))<0 or Ascw(Mid(str,i,1))>255 then 
HasChinese=true 
exit for 
end if 
next 
end function
%>
					   
					    
					   
					    [本日志由 edwin 于 2010-03-16 12:16 AM 编辑]
						
文章来自: 本站原创
						
引用通告: 查看所有引用 | 
我要引用此文章
					   	
						 
Tags: ASPASP 中文字符串中文字符串 判断判断 函数函数 
					    
					   评论: 0 | 引用: 0 | 查看次数: 10308