770s

Learn about 770s, we have the largest and most updated 770s information on alibabacloud.com

Whether the. NET query terminal is a PC or a mobile port

Public stringIsMobile () { string Str_u = request.servervariables["Http_user_agent" ]; Regex B = New Regex(@ "Android.+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip (hone|od) |iris| Kindle|lge |maemo|midp|mmp|netfront|opera m (ob|in) i|palm (OS)? | Phone|p (Ixi|re) \/|plucker|pocket|psp|symbian|treo|up\. (Browser|link) |vodafone|wap|windows (ce|phone) |xda|xiino ", RegexOptions. IgnoreCase | RegexOptions . Multiline); Regex v = New Regex( @ "1207|6310|6590|3gso|

The website automatically identifies the PC side or the mobile side

) {IsMobile= true; Location.href= '/you-jiu-ju/windex'; Break; } } Script>From the code point of view, the implementation is very simple, that is, by navigator.useragent string detection to determine the type of browser, so that the browser to jump to different interfaces. For the vast majority of cases, this is enough, but beyond that, there is a stackoverflow in foreign countries who wrote a more final version of thevarIsMobile =false;//default PC-side//Detection useragentif(/(Andro

Nginx Adaptation Mobile End

|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac (er|oo|s\-) |ai (KO|RN) |al (Av|ca|co) |amoi|an (EX|NY|YW) | Aptu|ar (Ch|go) |as (te|us) |attw|au (di|\-m|r |s) |avan|be (CK|LL|NQ) |bi (lb|rd) |bl (Ac|az) |br (e|v) w|bumb|bw\-(n|u) |c55 \/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co (mp|nd) |craw|da (it|ll|ng) |dbte|dc\-s|devi|dica|dmob|do (c|p) O|ds (12|\ -D) |el (49|ai) |em (L2|ul) |er (ic|k0) |esl8|ez ([4-7]0|os|wa|ze) |fetc|fly (\-|_) |g1 U|g560|gene|gf\-5|

JavaScript determines phone-side access and jumps to redirect mobile

If your mobile website is in the/M directory(function(A, B) {if(/(Android|bb\d+|meego). +mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip (hone| OD) |iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m (ob|in) i|palm (OS)? | Phone|p (Ixi|re) \/|plucker|pocket|psp|series (4|6) 0|symbian|treo|up\. (Browser|link) |vodafone|wap|windows ce|xda|xiino/i.test (a) | | /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a Wa

in ASP. NET core to determine if the mobile side opens the Web page

Using Microsoft.AspNetCore.Http;Using System;Using System.Collections.Generic;Using System.Text;Using System.Text.RegularExpressions;Namespace Niunan.BamaTZ.Web.Models{public static Class Requestextensions{Regex from http://detectmobilebrowsers.com/private static readonly regex B = new Regex (@ "(Android|bb\d+|meego). +mobile|avantgo|bada\/|blackberry|blazer|compal| Elaine|fennec|hiptop|iemobile|ip (hone|od) |iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m (ob|in ) I|palm (OS)?

Nginx to do PC-side and mobile-side separation

$mobile _rewriteperform;} if ($http _user_agent~* "^ (1207|6310|6590 |3gso|4thp|50[1-6]i|770s|802s|awa|abac|ac (er|oo|s\-) |ai (KO|RN) |al (Av|ca|co) |amoi|an (ex|ny|yw) |aptu|ar (ch |go) |as (te|us) |attw|au (di|\-m|r|s) |avan|be (CK|LL|NQ) |bi (lb|rd) |bl (Ac|az) |br (e|v) w|bumb|bw\-(n|u) | C55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co (mp|nd) |craw|da (it|ll|ng) |dbte|dc\-s|devi|dica|dmob|do (c|p) O|ds ( 12|\-d) |el (49|ai) |em (L2|ul) |er (ic|k0

Related Keywords:
Total Pages: 2 1 2 Go to: Go

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.