标签:index navigator linux bsp tor 苹果 nbsp agent function
$(function () { var u = navigator.userAgent, app = navigator.appVersion; var isAndroid = u.indexOf(‘Android‘) > -1 || u.indexOf(‘Linux‘) > -1; //g var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端 if (isAndroid) { alert("安卓机!") } if (isIOS) { alert("苹果果机!") } });
标签:index navigator linux bsp tor 苹果 nbsp agent function
原文地址:https://www.cnblogs.com/web-record/p/10271028.html