当前位置:网站首页>Navigator object
Navigator object
2022-06-24 18:35:00 【Brother Mengfan】
1、 What is? navigator object
navigator Object contains information about the browser .
console.log(navigator);
console.log(navigator.plugins);
<script>
function hasPlugin(name) {
name = name ? name.toLocaleLowerCase() : '';
console.log('name = ' + name);
var plugins = navigator.plugins;
for (var i = 0; i < plugins.length; i++) {
//console.log(typeof plugins[i]);
console.log(plugins[i].name);
return plugins[i].name.toLocaleLowerCase().indexOf(name) !== -1 ? true : false;
}
}
var r = hasPlugin('pdf');
console.log(r);
</script>
边栏推荐
- 如何在 R 中执行稳健回归
- [NLP] 3 papers on how Stanford team builds a better chat AI
- 中电投先融期货这家公司怎么样?期货开户办理安全吗?
- Two micro service interviews where small companies suffer losses
- Considerations for it project demand analysis
- Recommend a distributed JVM monitoring tool, which is very practical!
- 微服务系统设计——接口文档管理设计
- Tencent cloud TCS: an application-oriented one-stop PAAS platform
- On software requirement analysis
- Leetcode weekly buckle 281
猜你喜欢
What is decision intelligence?
如何在 R 中使用 Fisher 的最小显着性差异 (LSD)
Cloud service selection of enterprises: comparative analysis of SaaS, PAAS and IAAs
ASP. Net hosting uploading file message 500 error in IIS
Nacos cluster starts throwing set of SQL_ SELECT_ LIMIT is not support
Leetcode weekly buckle 281
Flutter dart regular regexp matches non printing characters \cl\cj\cm\ck
How to decompile APK files
Three layer switching experiment
Recommend 14 commonly used test development tools
随机推荐
持续助力企业数字化转型-TCE获得国内首批数字化可信服务平台认证
Flutter dart regular regexp matches non printing characters \cl\cj\cm\ck
Millions of dollars worth of NFT were stolen in the attack, and Google issued an emergency warning to 3.2 billion users worldwide | February 21 global network security hotspot
Seven strategies for successfully integrating digital transformation
Leetcode topic [array] -216- combined sum III
Mariana Trench, Facebook's open source code analysis tool
Four security issues of low code and no code development
SAP license: SAP s/4 Hana module function introduction
中电投先融期货这家公司怎么样?期货开户办理安全吗?
Leetcode skimming questions - the 72nd biweekly match and 281 weekly match
Huitongda officially landed at the Hong Kong Stock Exchange: the gross profit margin continued to decline, and the book value of several shareholders still suffered losses
Vite+web3:报错出现ReferenceError: process is not defined
Ten software development indicators for project managers
[North Asia data recovery]_ mdb_ catalog. Mongodb database data recovery case in case of WT file corruption
What are the reasons for the abnormal playback of the online channel of the channel accessed by easycvr national standard protocol?
TCE was shortlisted as a typical solution for ICT innovation of the Ministry of industry and information technology in 2020
25.sql statement differentiation
Why are more and more people studying for doctors? Isn't it more and more difficult to graduate a doctor?
EasyCVR国标协议接入的通道,在线通道部分播放异常是什么原因?
Recommend a distributed JVM monitoring tool, which is very practical!