当前位置:网站首页>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 中使用 Fisher 的最小显着性差异 (LSD)
- Complete Guide to web application penetration testing
- High quality defect analysis: let yourself write fewer bugs
- 13 skills necessary for a competent QA Manager
- SAP license: ERP for supply chain management and Implementation
- Regression testing strategy for comprehensive quality assurance system
- What are the grades of financial products?
- Redis learning -- list of redis operations
- Overall planning and construction method of digital transformation
- Mental models: the best way to make informed decisions - farnam
猜你喜欢

Why are more and more people studying for doctors? Isn't it more and more difficult to graduate a doctor?

国家出手了!对知网启动网络安全审查

Creating a new MySQL user in Amazon RDS environment - creating a new MySQL user in Amazon RDS environment

Three indicators to help you measure the effectiveness of digital transformation
What if the database table structure changes? Smartbi products support one click synchronization
![[untitled]](/img/ab/066923f1aa1e8dd8dcc572cb60a25d.jpg)
[untitled]

Several key points for enterprises to pay attention to digital transformation

SDL: cannot play audio after upgrading openaudio to openaudiodevice

13 skills necessary for a competent QA Manager

微服务系统设计——子服务项目构建
随机推荐
110. balanced binary tree
Several key points for enterprises to pay attention to digital transformation
Nacos cluster starts throwing set of SQL_ SELECT_ LIMIT is not support
Digital trend analysis of B2B e-commerce market mode and trading capacity in electronic components industry
How to start cloud native application development
variable
Can the money invested in financial products be withdrawn at any time?
Ten software development indicators for project managers
Different JVM
Software testing methods: a short guide to quality assurance (QA) models
Introduction to yottastore, a new generation of storage engine for VPC TCE cos
Architecture decryption from distributed to microservice: several common microservice architecture schemes
Why are more and more people studying for doctors? Isn't it more and more difficult to graduate a doctor?
Leetcode topic [array] -216- combined sum III
You don't know about this inspection platform. It's a big loss!
Eight digit
Wechat applet development - Implementation of rotation chart
EasyNVR使用Onvif探测设备失败,显示“无数据”是什么原因?
Usage of typedef enum (enumeration)
Some knowledge of the beginning of 2022