联系官方销售客服
1835022288
028-61286886
各位老师,你们的迅睿手机站是怎么自动判别的,我用系统那个自动判别手机站不起作用,用js判别,{str_replace(SITE_URL, SITE_MURL, $my_web_url)},出现系统故障!
<script type="text/javascript">if(window.location.toString().indexOf('pref=padindex') != -1){}else{if(/AppleWebKit.*Mobile/i.test(navigator.userAgent) || (/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/.test(navigator.userAgent))){if(window.location.href.indexOf("?mobile")<0){try{if(/Android|Windows Phone|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)){window.location.href="{str_replace(SITE_URL, SITE_MURL, $my_web_url)}";}else if(/iPad/i.test(navigator.userAgent)){}else{}}catch(e){}}}}</script>