网页判断是手机浏览器登录还是电脑浏览器
发布时间:2016-05-05 21:00:05
public static bool CheckAgent() { bool flag = false; string agent = HttpContext.Current.Request.UserAgent; string[] keywor ...
public static bool CheckAgent() { bool flag = false; get='_blank'>string agent = HttpContext.Current.Request.UserAgent; string[] keywords = { "Android", "iPhone", "Windows Phone", "MQQBrowser" }; //排除 Windows 桌面系统 苹果桌面系统 if (!agent.Contains("Windows NT") && !agent.Contains("Macintosh")) { foreach (string item in keywords) { if (agent.Contains(item)) { flag = true; break; } } } return flag; }
原标题:网页判断是手机浏览器登录还是电脑浏览器
关键词:电脑
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。
到曼谷海运运费:https://www.goluckyvip.com/tag/89810.html
大连泰国海运:https://www.goluckyvip.com/tag/89811.html
出口泰国运输:https://www.goluckyvip.com/tag/89812.html
曼谷海运运费:https://www.goluckyvip.com/tag/89813.html
厦门曼谷海运报价:https://www.goluckyvip.com/tag/89814.html
天津到泰国船运:https://www.goluckyvip.com/tag/89815.html
长治婚庆女司仪和主持人:https://www.vstour.cn/a/366176.html
北京丰台区水上乐园哪家好玩?:https://www.vstour.cn/a/366177.html