string sUserAgent = Request.UserAgent.ToLower(); bool bIsIpad = Regex.IsMatch(sUserAgent, "ipad"); bool bIsIphoneOs = Regex.IsMatch(sUserAgent, "iphone"); bool bIsAndroid = Regex.IsMatch(sUserAgent, "android"); bool bIsWP = Regex.IsMatch(sUserAgent, "windows phone");
如果需要模拟终端,可以在firefox中下载 附加组件