VBS我的最爱!大海航行全靠我~~~,(伴唱:靠你!靠你!靠你!)
有vbs的问题就问我!
VBS做这些字符串的事情要比js方便,比如trim函数,js就没有。
dim xxxx,i,mychar
for i=1 to len(xxxx)
mychar=mid(xxxx,i,1)
if len(cstr(hex(asc(mychar))))=6 then
alert "中文!"
else
alert "e文!"
end if
next
VBS我的最爱!大海航行全靠我~~~,(伴唱:靠你!靠你!靠你!)
有vbs的问题就问我!
VBS做这些字符串的事情要比js方便,比如trim函数,js就没有。
dim xxxx,i,mychar
for i=1 to len(xxxx)
mychar=mid(xxxx,i,1)
if len(cstr(hex(asc(mychar))))=6 then
alert "中文!"
else
alert "e文!"
end if
next
VBS我的最爱!大海航行全靠我~~~,(伴唱:靠你!靠你!靠你!)
有vbs的问题就问我!
VBS做这些字符串的事情要比js方便,比如trim函数,js就没有。
dim xxxx,i,mychar
xxxx=request("xxxx")
for i=1 to len(xxxx)
mychar=mid(xxxx,i,1)
if len(cstr(hex(asc(mychar))))=6 then
response.write "中文!"
else
response.write "e文!"
end if
next