iphone/ipod网页开发教程及规则
摘要:
侦测iPhone/iPod开发特定设备的移动网站,首先要做的就是设备侦测了。下面是使用Javascript侦测iPhone/iPod的UA,然后转向到专属的URL。Js代码 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";}}虽然Javascript是可 阅读全文
posted @ 2013-10-08 14:21 追忆-php 阅读(276) 评论(0) 推荐(0)
浙公网安备 33010602011771号