标签:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"/> <title>APP 下载</title> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> </head> <body> <script type="text/javascript"> var UA = navigator.userAgent,devicesType = "android"; (UA.indexOf("iPhone") > -1 || UA.indexOf("iPad") > -1) && (devicesType = "iPhone"); if(devicesType === "android"){ location.href = "应用下载地址"; } if(devicesType === "iPhone"){ location.href = "应用下载地址"; } </script> </body> </html>
标签:
原文地址:http://www.cnblogs.com/zendwang/p/4267782.html