Using JS to determine the user's system is to use the browser's useragent.
Navigator.userAgent:userAgent gets the value of the user agent header used by the browser for HTTP requests.
Navigator.platform:platform gets the operating system and/or hardware platform that runs the browser.
<HTML><Head><Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8"><title></title><Scripttype= "Text/javascript">varu=navigator.useragent;variswindows=(U.indexof ("Windows",0) != -1)?1:0; varIsmac=(Navigator.platform== "mac68k") ||(Navigator.platform== "MACPPC") ||(Navigator.platform== "Macintosh") ||(Navigator.platform== "Macintel");varisandroid=U.indexof ('Android') > -1 ||U.indexof ('ADR') > -1; varIsios= !!U.match (/\ (i[^;] +;( U;)? Cpu.+mac OS X/); if(isandroid==true) {self.location="'; #重定向方法}if(Isios==true) {self.location="'; }if(iswindows==true) {self.location="'}if(Ismac==true) {self.location="'}</Script></Head><Body></Body></HTML>
JS Judging operating system windows,ios,android (note)