jQuery mouseup () method
Examples
On the <div> element release the mouse button, insert some text:
$("div").mouseup(function(){
$(this).after("释放鼠标按钮。");
});
$(this).after("释放鼠标按钮。");
});
try it"
Definition and Usage
When the mouse pointer moves over the element, and release the left mouse button, mouseup event occurs.
mouseup () method triggers mouseup event or add a function to run when the event occurs mouseup.
Tip: This method is usually mousedown () used with the method.
grammar
Trigger the selected element mouseup events:
$(selector).mouseup()
尝试一下
Adding Functions to mouseup event:
$(Selector) .mouseup (function) try
parameter | description |
---|---|
function | Optional. Function run when a predetermined trigger event mouseup. |