当前位置:网站首页>Obtain equipment information
Obtain equipment information
2022-06-23 18:44:00 【Magic uncle】
QQ Judge the browser environment :
function getBrowser() {
if((!!window.opr && !!opr.addons) || !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0) {
return 'Opera'
}
if(typeof InstallTrigger !== 'undefined') {
return 'Firefox'
}
if(/constructor/i.test(window.HTMLElement) || (function (p) {
return p.toString() === "[object SafariRemoteNotification]"; })(!window['safari'] || (typeof safari !== 'undefined' && window['safari'].pushNotification))) {
return 'Safari'
}
var isIE = /*@[email protected]*/false || !!document.documentMode;
if(isIE) {
return 'IE'
}
if(!isIE && !!window.StyleMedia) {
return 'Edge';
}
var isChrome = !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime);
if(isChrome) {
return 'Chrome';
}
if(isChrome && (navigator.userAgent.indexOf("Edg") != -1)) {
return 'EdgeChromium'
}
}
边栏推荐
- 【 Huazhong University of Science and technology】 Data Sharing for retest of the initial Examination
- Jericho Forced upgrade [chapter]
- Talk about row storage and column storage of database
- 如何让一个list根据另一个list的顺序排序
- 杰理之播 MP3 提示音功能【篇】
- 程序员未来会成为非常内卷的职业么?
- leetcode刷题:哈希表06 (赎金信)
- 在Microsoft Exchange Server 2007中安装SSL证书的教程
- Shell脚本编写
- Noah fortune passed the hearing: with an annual revenue of 4.3 billion yuan, Wang Jingbo has 49% voting rights, and Sequoia is a shareholder
猜你喜欢

Leetcode: hash table 06 (ransom letter)

Leetcode question brushing: hash table 05 (adding four numbers II)

Yapi installation

Practical circuit analysis 3

南芯半导体冲刺科创板:年营收9.8亿 顺为红杉小米OPPO是股东

Leetcode: hash table 04 (sum of two numbers)

韬略生物冲刺科创板:年亏损过亿 实控人张大为夫妇为美国籍

吃顿饭的时间,学会simulink之BLDC基本原理

QT based graphics rendering system documentation + project source code and executable exe files + system instructions

嵌入式开发基础之任务管理(线程管理)
随机推荐
Shell process control - 39. Special process control statements
leetcode刷题:哈希表02 (两个数组的交集)
汇编语言(1)基础知识
Jerry's DAC output mode setting [chapter]
随机过程——马尔科夫链
halcon知识:区域(Region)上的轮廓算子(1)
高级计网笔记(五)
STM32 (VIII) -- PWM output
重磅:国产IDE发布,由阿里研发,完全开源!(高性能+高定制性)
DigiCert和GlobalSign单域名OV SSL证书对比评测
Taolue biology rushes to the scientific innovation board: the actual controllers with annual losses of more than 100 million are Zhang Dawei and his wife, who are American nationals
微机原理第八章笔记整理
【Qt】第三、四章:窗口部件、布局管理
学习编程只需要这三条建议!
Jerry's broadcast MP3 prompt sound function [chapter]
对比学习(Contrastive Learning)综述
【二叉树】翻转二叉树以匹配先序遍历
测试
CV-卷积神经网络
杰理之串口设置好以后打印乱码,内部晶振没有校准【篇】