3 人参与回答
百度一下很多的
<script type="text/javascript">
if(().indexOf('pref=padindex') != -1){}
else{if(/APPlewebkit.*mobile/(()) || (/midp|symbianos|nokia|samsung|lg|nec|tcl|alcatel|bird|dbtel|dopod|philips|haier|lenovo|mot-|nokia|sonyericsson|sie-|amoi|zte/.test(()))){try{if(/android|windows phone|webos|iphone|ipod|blackberry/(())){"跳转网址";}
else if(/ipad/(())){}else{}}catch(e){}}}
</script>