$(function(){ // console.log(navigator.userAgent); var os = function (){ var ua = navigator.userAgent, isWindowsPhone = /(?:Windows Phone)/.test(ua), isSymbian = /(?:SymbianOS)/.test(ua) || isWindowsPhone, isAndroid =
function IsPC() { var userAgentInfo = navigator.userAgent; var Agents = new Array("Android", "Linux","iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"); var flag = true; ; v < A
之前网站判断移动还是手机跳转都是用js实现,今天给大家分享一个自己用的php判断移动或者PC <?php function check_wap() { if (isset($_SERVER['HTTP_VIA'])) return true; if (isset($_SERVER['HTTP_X_NOKIA_CONNECTION_MODE'])) return true; if (isset($_SERVER['HTTP_X_UP_CALLING_LINE_ID'])) return true;