以下JavaScript代码稍微替换一下域名就可以实现网站整站跳转,电脑端访问地址跳转手机端
<script>if ((navigator.userAgent.match(/(iPhone|iPod|iPad|Android|ios)/i))) {if (document.domain == 'dome.com' || document.domain == 'www.dome.com')this.location = "http://m.dome.com" + this.location.pathname + this.location.search;}</script>
|
|
|
|
|
|
精彩评论 (0)