摘要:
侦测iPhone/iPod开发特定设备的移动网站,首先要做的就是设备侦测了。下面是使用Javascript侦测iPhone/iPod的UA,然后转向到专属的URL。if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {if (document.cookie.indexOf("iphone_redirect=false") == -1) {window.location = "http://m.example.com";}}虽然Javascri 阅读全文
posted @ 2012-08-29 18:39
p-Flower
阅读(385)
评论(0)
推荐(0)

浙公网安备 33010602011771号