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 %>
Tags: ASPASP 中文字符串中文字符串 判断判断 函数函数
Powered By PJBlog2 v2.8.5.157 CopyRight 2005 - 2007, Edwin's Blog xhtml | css
Processed in 0.046875 second(s) , 3 queries , Nuvola Style For PJBlog2 Design By PuterJam |