jsp判断请求来自手机示例代码
代码如下: <% String wap = “http://3g.ssss.com.cn”; String agent = request.getHeader(“user-agent”); //String agent = “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/534.51.22 (KHTML, like Gecko) Version/5.1.1 Safari/534.51.22”; String agentcheck = agent.trim().toLowerCase(); boolean is
用户评论