<a id="demo" href="#" οnmοuseοver="aaa()">AAAA</a>
<script>
function aaa(){document.getElementById("demo").className="a-bg";}
</script>
用js给元素加入clsss样式
最新推荐文章于 2020-09-05 10:17:18 发布
<a id="demo" href="#" οnmοuseοver="aaa()">AAAA</a>
<script>
function aaa(){document.getElementById("demo").className="a-bg";}
</script>