简体   繁体   English

如何使用JavaScript检查是否安装了GEARS?

[英]How do I check if GEARS is installed, using javascript?

Is it windows.gears != undefined or something??? 是windows.gears!=未定义之类的吗???

I just want to use javascript to return true or false if the person has google Gears. 我只想使用javascript如果该人有Google Gears则返回true或false。

Detecting and Installing Gears although this requires gears_init.js. 检测并安装Gears,尽管这需要gears_init.js。 Maybe the source might give you a hint. 也许可能会给您提示。 It starts out like this, followed by some browser specific checks. 这样开始,然后进行一些特定于浏览器的检查。

(function() {
  // We are already defined. Hooray!
  if (window.google && google.gears) {
    return;
  }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何检查Firebug是否安装了javascript? - How do I check if firebug is installed with javascript? 如何在Javascript中为WebDB或Google Gears等客户端数据库转义数据? - How do I escape data in Javascript for a client-side database like WebDB or Google Gears? 如何使用JAVASCRIPT以编程方式检查是否已安装应用程序? - How to programatically check if an application is installed or not using JAVASCRIPT? 如何使用javascript安装或不安装应用程序 - How to check app is installed or not using javascript 要在GWT中使用Gears WorkerPool,是否必须用Java和Javascript编写相同的代码? - To use the Gears WorkerPool in GWT do I have to write the same code in Java and Javascript? 如何检测是否使用JavaScript安装了quicktime? - How do I detect if quicktime is installed with javascript? 如何在Internet Explorer中安装Lync Addon,并使用Javascript进行检查? - How can I check with Javascript if the Lync Addon is installed in Internet Explorer? 如何使用javascript检查和更改输入的值 - How do I check and change the value of an input with using javascript 如何使用javascript检查字段中的特定值? - How do i check for a specific value in a field using javascript? 如何使用 JavaScript 对文本输入执行验证检查? - How do I perform a validation check to a text input using JavaScript?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM