Excerpt from: Today's Headlines
<!doctype html>"en">"UTF-8"> <title>app Download </title> <script type="Text/javascript">//get terminal-related information varTerminal = { //identify mobile terminal typesplatform:function () {varU =navigator.useragent, App=navigator.appversion; return { //Android Terminal or UC browserAndroid:u.indexof ('Android') >-1|| U.indexof ('Linux') >-1, //whether it's an iphone or Qqhd browserIphone:u.indexof ('IPhone') >-1, //whether IPadIpad:u.indexof ('IPad') >-1 }; }(), //identify the language of the mobile Terminal: Zh-ch, en-US, KO-KR, JA-JP ...Language: (Navigator.browserlanguage | |navigator.language). toLowerCase ()}//jump to a different address, depending on the terminal vartheURL ='default'; if(Terminal.platform.android) {// AndroidtheURL ='this time to fill out Android' } Else if(Terminal.platform.iPhone) {//AppletheURL ='Apple'; } Else if(Terminal.platform.iPad) {//language can also be used to differentiate between multi-lingual versions Switch(terminal.language) { Case 'en -US': //your ipad app (English version): App Store AddresstheURL ='ipad'; Break; Case 'Ko-kr': //your ipad app (Korean version) corresponds to: App Store addresstheURL ="'; Break; Case 'JA-JP': //your ipad app (Japanese version) corresponds to: App Store addresstheURL ="'; Break;default: //your ipad app (Chinese-default) corresponds to: App Store addresstheURL ="'; }} location.href=theURL; </script>App Download--js device judgment