收藏到: Del.icio.us Google书签 Digg Live Bookmark Technorati Furl Yahoo书签 Facebook 百度搜藏 新浪ViVi 365Key网摘 天极网摘 和讯网摘 博拉网 POCO网摘 添加到饭否 QQ书签 Digbuzz我挖网 QQ书签 更多 Bookmark and Share

2009年4月18日星期六

Gear Factory

The Factory class is used to instantiate all other Gears objects. Using the create method, an application specifies the interface version it uses.

Code Example:
/ Check whether Gears is installed. if (window.google && google.gears) {   // Instantiate Gears objects   var db = google.gears.factory.create('beta.database');   db.open(); }

The supported class names are:

classNameGears class created
beta.databaseDatabase
beta.desktopDesktop
beta.geolocationGeolocation
beta.httprequestHttpRequest
beta.localserverLocalServer
beta.timerTimer
beta.workerpoolWorkerPool




没有评论:

发表评论