释放鼠标按钮时会触发onmouseup事件。
您可以尝试运行以下代码以了解如何在JavaScript中使用onmouseup事件-
<html> <head> <script> <!-- function sayHello() { alert("Mouse Up") } //--> </script> </head> <body> <p onmouseup = "sayHello()">This is demo text for mouseup event.</p> </body> </html>