当前位置:网站首页>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>边栏推荐
- Vite+web3:报错出现ReferenceError: process is not defined
- The mixed calculation of rpx and PX in JS by the uniapp applet
- [JS Framework] Failed to execute the callback function:
- variable
- Six configuration management tools that administrators must know
- Application service access configuration parameters
- Number of occurrences of numbers in the array (medium difficulty)
- Skills of writing test cases efficiently
- It is often blocked by R & D and operation? You need to master the 8 steps before realizing the requirements
- TCE was shortlisted as a typical solution for ICT innovation of the Ministry of industry and information technology in 2020
猜你喜欢
![717.1-bit and 2-bit characters [sliding window]](/img/61/449566d2a8efbd403ae0361f839683.jpg)
717.1-bit and 2-bit characters [sliding window]

如何在 R 中使用 Fisher 的最小显着性差异 (LSD)

Wechat applet to realize stacked rotation

Considerations for it project demand analysis

How does the chief information security officer discuss network security with the enterprise board of directors

Seven strategies for successfully integrating digital transformation

Nacos cluster starts throwing set of SQL_ SELECT_ LIMIT is not support

Cloud service selection of enterprises: comparative analysis of SaaS, PAAS and IAAs

Project Management Guide: tips, strategies and specific practices

2022 network security C module of the secondary vocational group scans the script of the surviving target aircraft (municipal, provincial and national)
随机推荐
congratulate! The first dragon lizard community annual outstanding contribution award is announced. Check it now
(Video + graphics) introduction to machine learning series - Chapter 11 support vector machines
"2022" plans to change jobs and raise salary. It is necessary to ask interview questions and answers - browser
Wechat applet to realize stacked rotation
解决执行MapReduce程序控制台没有日志信息WARN Please initialize the log4j system properly
Introduction to yottastore, a new generation of storage engine for VPC TCE cos
如何在 R 中创建线性模型预测区间 并可视化
What are the reasons for the abnormal playback of the online channel of the channel accessed by easycvr national standard protocol?
如何在 R 中执行幂回归
How can programmers reduce bugs in development?
Recommend a distributed JVM monitoring tool, which is very practical!
如何在 R 中执行稳健回归
EasyCVR国标协议接入的通道,在线通道部分播放异常是什么原因?
Usage of typedef enum (enumeration)
Why should state-owned enterprises accelerate the digital transformation
Palindrome string (two methods)
Does the wave of layoffs in Chinese enterprises in 2021 need to be "judged" by morality?
About pyqt5 to realize paging function (one window implements different interfaces)
Uniapp wechat applet calls mobile map to navigate to the target point
Sudoku (easy to understand)