当前位置:网站首页>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>边栏推荐
- Application service access configuration parameters
- Knowledge points of 2022 system integration project management engineer examination: ITSS information technology service
- How to select the best test cases for automation?
- Project Management Guide: tips, strategies and specific practices
- Specification for self test requirements of program developers
- Mental models: the best way to make informed decisions - farnam
- 微服务系统设计——子服务项目构建
- Ten software development indicators for project managers
- Two micro service interviews where small companies suffer losses
- 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
猜你喜欢

微服务系统设计——数据模型与系统架构设计

Wechat applet development - Implementation of rotation chart

微服务系统设计——接口文档管理设计

How can programmers reduce bugs in development?

Software testing methods: a short guide to quality assurance (QA) models

SAP license: SAP s/4 Hana module function introduction

Different JVM

The country has made a move! Launch network security review on HowNet

"2022" plans to change jobs and raise salary. It is necessary to ask interview questions and answers - browser

Seven strategies for successfully integrating digital transformation
随机推荐
696. count binary substring
Top ten popular codeless testing tools
Easygbs video platform TCP active mode streaming exception repair
Implementation of pure three-layer container network based on BGP
SAP license:sap s/4hana is the answer
Flutter dart regular regexp special characters $, () (IV)
Is there a security risk in opening an account online? What to do if the business department opening an account nearby is far away from home. Is there any capital requirement for opening an account?
Three indicators to help you measure the effectiveness of digital transformation
Easynvr fails to use onvif to detect the device. What is the reason why "no data" is displayed?
It is often blocked by R & D and operation? You need to master the 8 steps before realizing the requirements
13 skills necessary for a competent QA Manager
Monotone stack template
Is it safe to open an account online? What should I do?
Two micro service interviews where small companies suffer losses
R中的指数回归
How to select the best test cases for automation?
Usage of typedef enum (enumeration)
How do yaml files and zmail collide with the spark of the framework, and how can code and data be separated gracefully?
Four security issues of low code and no code development
Wechat applet development - Implementation of rotation chart