<script type = "text/javascript" > function fBrowserRedirect() { var ua = navigator.userAgent.toLowerCase(); var Android = String(ua.match(/android/i)) == "android"; var iPad = String(ua.match(/ipad/i)) == "ipad"; var iPhone = String(ua.match(/iphone/i)) == "iphone"; if (!Android && !iPad && !iPhone) { console.log('非') } else { console.log('是') } } fBrowserRedirect(); window.onresize = function() { fBrowserRedirect(); console.log("识别成功"); } </script>
没有回复内容