云服务器ASP判断客户端是手机或电脑代码
代码比较简单,判断客户端浏览器信息是否包含Mobile。
<%
if instr(request.servervariables("http_user_agent"),"Mobile")>0 then
%>
电脑端显示内容
<%else%>
手机端显示内容(可以加入跳转代码)
<%end if%>
了解最新动态,掌握行业资讯,获取产品更新信息
代码比较简单,判断客户端浏览器信息是否包含Mobile。
<%
if instr(request.servervariables("http_user_agent"),"Mobile")>0 then
%>
电脑端显示内容
<%else%>
手机端显示内容(可以加入跳转代码)
<%end if%>