1.通过js判段是pc端还是移动端 function browserRedirect() { var type = ""; var sUserAgent = navigator.userAgent.toLowerCase(); var bIsIpad = sUserAgent.match(/ipad/i) == "ipad"; var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os&qu
<script type="text/javascript"> function goPAGE() { if ((navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i))) { windo
function IsPC() { var userAgentInfo = navigator.userAgent; var Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"]; var flag =
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://detectm