blur
English[bl?:(r)] American[bl?]
n. ???, ???; ???
vt.& vi. ???, ???; ????
jquery ??() ?? ???
??: ?? ???? ??? ??? ?? ? ?????. Blur() ??? ?? ???? ??????, ?? ????? ??? ?? ?? ???? ??? ? ??? ??? ???? ??? ?? ????. ???? ?? ???? ?? ????? ??????. ? ??????? ? ???? ?? ???? ??? ? ????.
?? ??? ???: ??? ??? ?? ???? ??????.
??: ??$(selector).blur()
??? ?? ???? ???Event: ??? ??? ?? ???? ??? ? ??? ??? ?????.
??: ??$(selector).blur(function)
????:
Parameters | Description |
function | ?? ?????. ?? ???? ??? ? ??? ??? ?????. |
jquery ??() ?? ?
<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(){ $("input").focus(function(){ $("input").css("background-color","#FFFFCC"); }); $("input").blur(function(){ $("input").css("background-color","#D6D6FF"); }); }); </script> </head> <body> Enter your name: <input type="text" /> <p>請(qǐng)?jiān)谏厦娴妮斎胗蛑悬c(diǎn)擊,使其獲得焦點(diǎn),然后在輸入域外面點(diǎn)擊,使其失去焦點(diǎn)。</p> </body> </html>
??? ????? ??? "???? ??" ??? ?????