var ua = navigator.userAgent.toLowerCase(); if (/iphone|ipad|ipod/.test(ua)) { //alert("iphone"); load(url); } else if (/android/.test(ua)) { var version = ua.substr(ua.indexOf(‘android‘) + 8, 3); //alert(version); if(version<4.3){ loadflash(url); }else{ load(url); } }else{ load(url); }
时间: 2024-10-12 05:25:11