28
2023
08

asp判断手机电脑端

<%

Response.Charset = "UTF-8"

Function ceKHD(str) 

if str="" then exit Function

str = replace(str,"iPhone","")

str = replace(str,"iPod","")

str = replace(str,"Android","")

str = replace(str,"ios","")

str = replace(str,"iPad","")

ceKHD=str

End Function

KHD=ceKHD (request.servervariables("http_user_agent"))

if request.servervariables("http_user_agent")<>KHD then

else

end if

%>


« 上一篇下一篇 »

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。