关于我们

质量为本、客户为根、勇于拼搏、务实创新

< 返回新闻公共列表

云服务器ASP判断客户端是手机或电脑代码

发布时间:2021-02-16 10:46:26
1491984010112764.jpg

代码比较简单,判断客户端浏览器信息是否包含Mobile。


<%
if instr(request.servervariables("http_user_agent"),"Mobile")>0 then
%>
电脑端显示内容
<%else%>
手机端显示内容(可以加入跳转代码)
<%end if%>



/template/Home/8a/PC/Static