首先写一个函数: closeChart() { document.addEventListener("click", e => { const iconEl = document.querySelector(".socre");