weiqian

<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 = "http://www.asiayak.cn";
}
if (browser.versions.android) {
window.location.href = "http://www.qq.com";
}

分类:

技术点:

相关文章:

  • 2021-07-06
  • 2022-12-23
  • 2021-12-24
  • 2021-08-08
  • 2021-08-28
  • 2022-12-23
  • 2021-06-25
  • 2022-12-23
猜你喜欢
  • 2021-12-22
  • 2021-12-22
  • 2021-11-23
  • 2022-12-23
  • 2021-12-02
相关资源
相似解决方案