document.getElementById("myButton").addEventListener("mouseup", function() { console.log("Mouse button released!"); }); Mouseover 和 Mouseout 当鼠标指针进入(mouseover)或离开(mouseout)元素时,这些事件会触发。