判断是否手机端
apple 登录
http://www.oschina.net/code/piece_full?code=19659
<script type="text/javascript">
try{
if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)){
window.location.href="
http://www.xx.com/
";
}
}catch(e){}
</script>