admin 发表于 2013-11-23 11:38:36

判断是否是手机访问,然后跳转到手机网站代码

<script>var uaTest = /Android|webOS|Windows Phone|iPhone|ucweb|ucbrowser|iPod|BlackBerry/i.test(navigator.userAgent.toLowerCase());var touchTest = 'ontouchend' in document;if(uaTest && touchTest){window.location.href = 'http://m178.yeapoo.com/';}</script>

页: [1]
查看完整版本: 判断是否是手机访问,然后跳转到手机网站代码