<script>
$(document).ready(function(){
var ua = navigator.userAgent;
var ipad = ua.match(/(iPad).*OS\s([\d_]+)/),
isIphone = ua.match(/(iPhone\sOS)\s([\d_]+)/),
isAndroid = ua.match(/(Android)\s+([\d.]+)/);
if(isIphone!=null || isAndroid!=null || ipad!=null){
//isIphone!=null 打开设备为Iphone
} }); </script>