1
jwangkun OP <html>
<title></title> <head></head> <body> <script type="text/javascript"> var browser = { versions: function () { var u = navigator.userAgent, app = navigator.appVersion; return { //移动终端浏览器版本信息 ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端 android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或uc浏览器 iPhone: u.indexOf('iPhone') > -1, //是否为iPhone或者QQHD浏览器 iPad: u.indexOf('iPad') > -1, //是否iPad }; }(), } if (browser.versions.iPhone || browser.versions.iPad || browser.versions.ios) { window.location.href = "https://itunes.apple.com/cn/app/qq/id444934666?mt=8&v0=WWW-GCCN-ITSTOP100-FREEAPPS&l=&ign-mpt=uo%3D4"; } if (browser.versions.android) { window.location.href = "http://www.qq.com"; } </body> </html> 这样行吗 |
2
WildCat 2014-12-19 09:32:12 +08:00 via iPhone
|
3
kookxiang 2014-12-19 11:28:08 +08:00
最好直接用302跳转吧,也是判断浏览器UA跳转
|
4
xwsoul 2014-12-19 12:02:32 +08:00
简单说就是二维码进landing page, Landing page 识别定向转发
|