<script type= "Text/javascript" >
Mobile-side URL jump, custom section start
function Mobile_device_detect (URL) {
var thisos = Navigator.platform;
var os = new Array ("IPhone", "IPod", "IPad", "Android", "Nokia", "SymbianOS", "Symbian", "Windows phone", "Phone", "Linux ARMV71 "," MAUI "," untrusted/1.0 "," Windows CE "," BlackBerry "," Iemobile ");
for (var i = 0; i < os.length; i++) {
if (Thisos.match (Os[i])) {
window.location = URL;
}
}
if (navigator.platform.indexOf (' IPad ')! =-1) {
window.location = URL;
}
var check = navigator.appversion;
if (Check.match (/linux/i)) {
if (Check.match (/mobile/i) | | check.match (/x11/i)) {
window.location = URL;
}
}
Array.prototype.in_array = function (e) {
for (i = 0; i < this.length; i++) {
if (this[i] = = e) return true;
}
return false;
}
}
Mobile_device_detect ("/M"); /m for mobile URL
</script>
JS mobile phone to visit the PC-side website automatically jump to the mobile site