mouse
English [ma?s] American [ma?s]
n. ?; ???? ?? [informal] ?? ?? ??
vi ?? ?? ???
out
English [a?t]
adv.out; ???, ???? ????
prep.(??? ??? ???) ??) ???,
??? ????,
n.
jquery mouseout()?? ???
??: ??? ???? ???? ???? mouseout ???? ?????. ? ???? ??? ?? ???? ?? ?? ?? ?????. mouseout() ???? mouseout ???? ?????? mouseout ???? ??? ? ??? ??? ?????. mouseleave ???? ?? mouseout ???? ??? ???? ??? ?? ?? ?? ??? ???? ??? ???? ??????. mouseleave ???? ??? ???? ??? ??? ?? ?? ?????. ??? ??? ?? ?? ?????.
mouseout ??? ?? ???: $(selector).mouseout(
??? mouseout ??? ??? ???: $(selector).mouseout(function)
????:
???? | ?? |
function | ?? ?? |
jquery mouseout()?? ?
<html> <head> <script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("p").mouseover(function(){ $("p").css("background-color","yellow"); }); $("p").mouseout(function(){ $("p").css("background-color","#E9E9E4"); }); $("#btn1").click(function(){ $("p").mouseover(); }); $("#btn2").click(function(){ $("p").mouseout(); }); }); </script> </head> <body> <p style="background-color:#E9E9E4">請(qǐng)把鼠標(biāo)指針移動(dòng)到段落上。</p> <button id="btn1">觸發(fā)段落的 mouseover 事件</button><br /> <button id="btn2">觸發(fā)段落的 mouseout 事件</button> </body> </html>
??? ????? ??? "???? ??" ??? ?????