有時候難免需要使用js進行 dom 操作;如在刪除地圖feature時同時得清除提示框
這個就需要使用 .parentNode.removeChild(元素)
let chArr = document.body.getElementsByClassName("tooltip-static");
for(i=0;i<chArr.length;i++){
//刪除元素 元素.parentNode.removeChild(元素);
if (chArr[i] != null)
chArr[i].parentNode.removeChild(chArr[i]);
}