From: http://hi.baidu.com/xfm_zhr/blog/item/eed0c7dc6e58e4a6cc116629.html
1.Gevent namespace
How to add event listening
Gevent. addlistener (source, event, Handler );
Add event listening for googlemaps objects.
Sourse: the object to be monitored.
Event: the event to be monitored.
Handler: Event Response Function.
For details about events of the googlemaps object, refer to the Google documentation.
Gevent. adddomlistener (sourse, envent, Handler );
Add event listening for common DOM objects.
Sourse: DOM object.
Envent: events supported by DOM objects.
Handler: Event Response Processing Method.
Example:
VaR nomap = Document. getelementbyid ("nomap ");
Gevent. adddomlistener (nomap, "click", function ()
{
Alert (nomap. innertext );
});
Remove event listening
Gevent. removelistener (handler );
Removes the specified event listener.
Handler: Listener corresponding to the added listener.
Gevent. clearlisteners (sourse, event );
Removes all listeners from an object event.
Sourse: Response object. Googlemaps object or DOM object.
Event: the monitored event.
Gevent. clearinstancelisteners (sourse );
All event listeners of the specified object are clear.
Sourse: clears the object of the event listener.