<script type="text/javascript">
if(/AppleWebKit.*Mobile/i.test(navigator.userAgent) || (/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/.test(navigator.userAgent))){
if(window.location.href.indexOf("?mobile")<0){
try{
if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)){
window.location.href="http://www.baidu.com";
}else if(/iPad/i.test(navigator.userAgent)){
}else{
window.location.href="http://www.baidu.com";
}
}catch(e){}
}
}
</script>
本文转自程序猿博客51CTO博客,原文链接http://blog.51cto.com/haihuiwei/1626708如需转载请自行联系原作者
365850153