效果图
map.getOverlays().forEach((e, i) => {
if (e.Bb != null) {
console.log(e);
console.log("content::" + e.Bb.content);
//将字符串转换为html
let parser = new DOMParser();
let doc=parser.parseFromString(e.Bb.content, "text/html");
console.log("dom::" + doc.getElementsByTagName('td')[1].innerText );
console.log("title::" + e.V.title);
console.log("lng::" + e.point.lng);
console.log("lat::" + e.point.lat);
}
});