2013-03-06 59 views

回答

-1

在CoffeeScript的

google.maps.event.addDomListener mapElement, 'click', (e) -> 
    if e?.target?.parentElement?.parentElement?.parentElement?.title == "Draw a shape" 
    clearExistingShapes() # <-- your own code goes there 

不是很優雅,但在緊要關頭的作品。

相關問題