---
title: "使用Google Gears 心得"
author: "cjc"
date: "2008-07-21T13:58:00Z"
tags: []
slug: "google-gears"
draft: false
lastmod: "2008-07-21T13:58:00Z"
id: 402706
url: "https://cjc.iteye.com/blog/402706"
---

&lt;script&gt;function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}&lt;/script&gt;

昨天尝试使用了一下[Google Gears](http://gears.google.com/) ，分享一些心得如下：

1、[Google Gears](http://www.watch-life.net/googleapp/google-gears.html) 支持IE6、IE7、FireFox2.0、FireFox3.0 。对于IE来说Google Gears本质上就是ActiveX ，利用ActionX来离线使用google一些应用比如[Google Docs](http://docs.google.com/) ，[Google Reader](http://www.google.com/reader)(目前支持这两种，最近的消息将支持gmail和google calendar) .

2、提供三个模块：  
A、 本地 web 服务器（用于提供 HTML, JavaScript, 图片等的访问请求）  
B、数据库  
c、 WorkerPool  
有关这三个模块应用请看这里：[http://www.cnblogs.com/RChen/archive/2007/06/08/googlegears\_1.html](http://www.cnblogs.com/RChen/archive/2007/06/08/googlegears_1.html)

3、中文版Google docs应用google gears。中文版Google Reader 默认是没有应用google gears的，需要先把Google Reader 语言设置成英文。步骤如下：  
A)在英文版下：右上角有个”Offline“的链接  
![gears](http://www.watch-life.net/images/gears3.jpg)  
B)点击”Offline“的链接，出现一个安装界面：  
![gears](http://www.watch-life.net/images/gears4.jpg)  
点击”Enable Offline Access“后开始安装，安装后原来”Offline“的链接位置出现一个绿色的同步的图标：  
![gears](http://www.watch-life.net/images/gears5.jpg)  
3）同步完成后，切回到中文版，就可以在中文版下使用google gears了，如下图所示  
![gears](http://www.watch-life.net/images/gears6.jpg)  
有关离线google docs 的使用你可以详细看这里：http://docs.google.com/offlinehelp?hl=zh\_CN

不过有个不知道算不算bug，就是右上角那个红色提示”正在加载“（英文版是”loading“）总是在那里，不消失了。

4、中文版Google reader也可以应用google gears，方法类似，不过切回中文版后，会发现有些地方并非完全的中文，不知道这算不算google reader的一个bug，而或者是应用google gears后导致的问题。

5、在wordpress应用Google reader。2.6版本的wordpress开始支持google gears。使用很简单，就是在管理界面点击：”加速“（英文版为”Speed Up“）  
![gears](http://www.watch-life.net/images/gears8.jpg)  
开始同步  
![gears](http://www.watch-life.net/images/gears9.jpg)  
那么以后再使用wordpress的管理界面就相对快些了，因为很多文件都同步到本地了。

google gears 将来的应用前景一定比较广，在gmail也可以应用的话，将是outlook有利的竞争。

本文首发地址：[http://www.watch-life.net/googleapp/google-gears.html](http://www.watch-life.net/googleapp/google-gears.html%20)

更多文章见：[守望轩](http://www.watch-life.net/)\[[http://www.watch-life.net/](http://www.watch-life.net/)]