1、使用Dojo---Connect Style Event
dojo.connect(XXXGraphicsLayer, "onClick", function(evt)
{
//todo
});
dojo.connect(map, "onClick", function(evt) {
map.graphics.clear();});2、图层事件属性-DOM MouseEvent
XXXGraphicsLayer.onClick = function(evt)
{
//todo
}
3、地图属性---On Style Events
map.on("mouse-over", function (evt) {
//todo
}