JavaScript点击切换图片事件
<!-- 1.切换图片 -->
<img id="and" src="https://ts1.cn.mm.bing.net/th?id=OIP-C.rHuc8SKa0wLVwCqqA27uIwHaEt&w=193&h=110&c=8&rs=1&qlt=90&o=6&dpr=1.25&pid=3.1&rm=2">
<script>
var and=document.getElementById("and")
alert("hhhh")
and.src="https://ts1.cn.mm.bing.net/th?id=OIP-C.nqjJErmgsCPKQA0W59F7HgHaEK&w=167&h=100&c=8&rs=1&qlt=90&o=6&dpr=1.25&pid=3.1&rm=2"
</script>