• 确博日记
  • 工作时间:09:30 pm-06:24 pm

ASP判断客户端是手机或电脑代码

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

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

  • 在线列表
    1589813