百度地图 Infowidow 内容(content 下标签) 点击事件

    需要监听 infowindow 的打开事件 ,查看InfoWindow API 

  实现 html 点击效果 代码

     var infoWindow = that.createDangerInfoWindow(jsonData);

                  infoWindow.addEventListener("open", function() {
                         $(".basic-ul li").click(function () {
                              alert("aa");
                            $(this).css({
                                "background-color": "#fff",
                                "color": "blue",
                                "border:": "0"
                            }).siblings("li").css({"background-color": "#a9dbf6", "color": "#000", "border:": "1"});
    
                            var acc = $(this).index();
                            $(this).parent().prev().children().eq(acc).siblings().addClass("displayy");
                            $(this).parent().prev().children().eq(acc).removeClass("displayy");
                        });

                   });
原文地址:https://www.cnblogs.com/kunlunmountain/p/8669330.html