[英]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.