二维码扫描下载APP页面
将该页面链接转成二维码即可实现扫描同一个二维码下载苹果或者安卓APP
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>APP下载</title> <script type="text/javascript"> /* * 智能机浏览器版本信息: * */ var browser = { versions: function () { var u = navigator.userAgent, app = navigator.appVersion; return { trident: u.indexOf('Trident') > -1, presto: u.indexOf('Presto') > -1, webKit: u.indexOf('AppleWebKit') > -1, gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, mobile: !!u.match(/AppleWebKit.*Mobile.*/) || !!u.match(/AppleWebKit/), ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, iPhone: u.indexOf('iPhone') > -1 || u.indexOf('Mac') > -1, iPad: u.indexOf('iPad') > -1, webApp: u.indexOf('Safari') == -1 }; }(), language: (navigator.browserLanguage || navigator.language).toLowerCase() }
if (browser.versions.ios || browser.versions.iPhone || browser.versions.iPad) { window.location = ""; } else if (browser.versions.android) { window.location = ""; } document.writeln("语言版本: " + browser.language); document.writeln(" 是否为移动终端: " + browser.versions.mobile); document.writeln(" ios终端: " + browser.versions.ios); document.writeln(" android终端: " + browser.versions.android); document.writeln(" 是否为iPhone: " + browser.versions.iPhone); document.writeln(" 是否iPad: " + browser.versions.iPad); document.writeln(navigator.userAgent); </script> </head> <body> </body> </html>
|