分享到:

用asp程序来判断是电脑上网还是手机上网

10-10月-2011
<%
if InStr(LCase(Request.ServerVariables("HTTP_ACCEPT")),"text/vnd.wap.wml")>0 then
response.redirect  "wap.asp" '如果是手机访问则跳转到wap.asp
response.end
else
response.redirect  "default.asp" '如果电脑访问跳转到首页
response.end
end if
%>
View: 1753

上篇新闻:中关村与世界对话

下篇新闻:IIS启用GZip压缩JS/CSS等静态文件