判断终端的函数
作者:互联网
IsPC() {
var userAgentInfo = navigator.userAgent;
var Agents = ["Android", "iPhone","SymbianOS", "Windows Phone","iPad", "iPod"];
for (var v = 0; v < Agents.length; v++) {
if (userAgentInfo.indexOf(Agents[v]) > 0) {
this.IsPCFlag = false;
break;
}
}
},
标签:iPad,IsPCFlag,判断,false,函数,Agents,终端,var,userAgentInfo 来源: https://www.cnblogs.com/dongyuezhuang/p/11416886.html