<img 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" alt="" id="and"> <script> var and=document.getElementById("and") function fun() { alert("点击成功") } and.onclick=fun </script>