window.οnlοad=function () { var u = navigator.userAgent, app = navigator.appVersion; var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //android终端或者uc浏览器 var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端 if (isiOS) {} if (isAndroid) {} };
JS判断ios或者Android
最新推荐文章于 2024-01-23 18:13:37 发布