日期:2014-06-02  浏览次数:22696 次

Request.ServerVariables   ("HTTP_USER_AGENT") 用来识别登录客户端的。

经测试在各种手机中显示不一样,如下:

安卓:

Mozilla/5.0 (Linux; U; Android 4.1.9; zh-cn; A908 Build/A908A908) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30

苹果iphone 4s

MQQBrowser/35 Mozilla/5.0 (iPhone 4S; CPU iPhone OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Mobile/9B206 Safari/7534.48.3

黑莓:

Mozilla/5.0 (BlackBerry; U; BlackBerry 9700; zh-CN) AppleWebKit/534.8+ (KHTML, like Gecko) Version/6.0.0.499 Mobile Safari/534.8+