JavaScript点击切换文字事件 <h1 id="hhh">哈哈哈哈哈哈</h1> <script> var and=document.getElementById("hhh") alert("aaaaa") </script>