ipad平板、安卓网站自动跳转代码

 时间:2024-10-31 08:22:06

1、新建Html文件

2、<scripttype="text/javascript">function uaredirect(murl){try {if(document.getElementById("bdmark") != null){return;}var urlhash = window.location.hash;if (!urlhash.match("fromapp")){if ((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i))) {location.replace(murl);}}} catch(err){}}</script><scripttype="text/javascript">uaredirect("手机URL");</script>

3、放到body之前即可,放到FTP服务器中,直接用ipad测试!

  • 三汇SHT-8PCI型语音卡说明书
  • 苹果Iphone手机如何开机,关机和重启
  • 苹果iphone6splus手机防水袋潜水套哪个品牌子好
  • 如何提高通勤路上的学习效率?
  • 三个蛋糕平均分给四个人应该怎么分
  • 热门搜索
    关于曹文轩的手抄报 以书为友手抄报 关于的手抄报图片 生命安全手抄报 四季手抄报 家乡手抄报 环境教育手抄报 健康小报手抄报 数学手抄报四年级 舌尖上的年味手抄报