<script>
//如果是mobileAgents中的信息,将跳转到m.xxx.cn域名
var sUserAgent=navigator.userAgent;var mobileAgents=['Windows CE','iPod','Symbian','iPhone','BlackBerry','Android','Windows Phone','iPad'];
for( var i=0;i<mobileAgents.length;i++){
if(sUserAgent.indexOf(mobileAgents[i])>-1){
location='http://m.xxx.cn';
break;
}
}
</script>