Mobile Access to the PC version of the website automatically jump to the mobile version of the page
functionGetmcookie (objname) {varArrstr = Document.cookie.split (";"); for(vari = 0; i < arrstr.length; i++) { vartemp = arrstr[i].split ("="); if(Temp[0] = =objname) { returnUnescape (temp[1]); } } return"";}functionBrowserredirect () {varSuseragent =navigator.userAgent.toLowerCase (); varBisipad = Suseragent.match (/ipad/i) = = "ipad"; varBisiphoneos = Suseragent.match (/iphone os/i) = = "iphone OS"; varBISMIDP = Suseragent.match (/midp/i) = = "MIDP"; varBIsUc7 = Suseragent.match (/rv:1.2.3.4/i) = = "rv:1.2.3.4"; varBISUC = Suseragent.match (/ucweb/i) = = "UCWeb"; varBisandroid = Suseragent.match (/android/i) = = "Android"; varBisce = Suseragent.match (/windows ce/i) = = "Windows CE"; varBISWM = Suseragent.match (/windows mobile/i) = = "Windows Mobile"; if(Bisipad | | bisiphoneos | | bismidp | | bIsUc7 | | bisuc | | bisandroid | | bisce | |biswm) {Location.href= ' mobile version page URL '; }}varPageurl =Window.location.search;if(Pageurl = = '? m2w ')) {Document.cookie= "m2wcookie=" + Escape ("1");}if(Getmcookie ("M2wcookie")! = "1") browserredirect ();
Mobile Access to the PC version of the website automatically jumps to the mobile version of the page