-->

JS 点击隐藏代码

<div id="abcw">

<div class='adsxtie'>
<a href="#" onclick="javascript:turnoff('abcw')">
<img src="https://c.gumgum.com/ads/com/gumgum/icons/svg/close_dark.svg"/>
</a>
</div>

内容
</div>

<script>
function turnoff(obj){
document.getElementById(obj).style.display="none";
}
</script>
BERIKAN KOMENTAR ()