二亩地专业建站/网站制作建设公司

标题: 判断是否是手机访问,然后跳转到手机网站代码 [打印本页]

作者: admin    时间: 2013-11-23 11:38:36     标题: 判断是否是手机访问,然后跳转到手机网站代码

  1. <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>
复制代码







欢迎光临 二亩地专业建站/网站制作建设公司 (http://www.ermudi.cn/) Powered by Discuz! X2