摘要:
public static bool IsMobile() { string agent = (HttpContext.Current.Request.UserAgent + "").ToLower().Trim(); if (agent == "" || agent.IndexOf("mozilla") != -1 || agent.IndexOf("opera") != -1) return false; return true; }public bool IsWap() { string agent = (R 阅读全文