gpt4 book ai didi

javascript - 在 Chrome 中检测插件的版本号

转载 作者:行者123 更新时间:2023-11-28 10:11:05 25 4
gpt4 key购买 nike

在 Firefox 中我可以引用

navigator.plugins["myplugin"].version

但是 chrome 中不存在“version”属性。我正在使用的特定插件是 Citrix Client Receiver 插件 ( download here )。

有人知道我不知道的关于在哪里或如何使用 JavaScript 在 Chrome 中获取此插件的版本号的信息吗?

最佳答案

在 Chrome 中获取插件版本号的唯一方法是解释名称:

//Example, Shockwave Flash
var version = navigator.plugins["Shockwave Flash"].name.match(/([\d.]+)/);
//used semicolons (grouping) inside the Regular expression, to allow the
// possibility of defining a more detailed/exact version position.

version = version ? version[1] : "";

关于javascript - 在 Chrome 中检测插件的版本号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7422813/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com