Click event in Google Map InfoWindow not caught

前端 未结 6 1832
暖寄归人
暖寄归人 2021-02-08 13:43

With Google Map v2, I would like to be able to trigger a function when clicking a text in the InfoWindow of a GMarker.

$(\".foo\").click(myFunction);

...

marke         


        
6条回答
  •  逝去的感伤
    2021-02-08 14:26

    simple solution and work for me. use onclick event in span.

    myText
    
    function test(){
    alert('test OK');
    }
    

提交回复
热议问题