阿夜编程 Hello! 静坐于万花筒,在绚烂中寻找那唯一的本源

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

%>


2023年8月28日 | 发布:阿夜 | 分类:Asp | 评论:0

发表留言: