国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

jQuery ??

jQuery ??

jQuery? ???? HTML ??? ??(??, ??)?? ?? ??? ?? "??"? ??? ? ????.

jQuery ??

jQuery ??? HTML ??? ???? ??? ??? ?? ?? ??? ???? ????.

?? ??: $(selector).action()

?? ??? jQuery ???(???) "??" ? "??" HTML ??? ?????. jQuery? action()? ??? ?? ??? ?????.

?:

$(this) .hide() - ?? ?? ???

$("p").hide() - ?? <p> ?? ???

$("p.test").hide() - ?? ??? ??? = < ;p> "test" ??

$("#test").hide() - id="test"? ?? ?? ???

CSS ???? ???????
jQuery?? ???? ??? XPath? CSS ??? ??? ?????. ? ????? ?? ???? ??? ??? ?? ??? ?????.

?? ?? ???

?? ??? ?? jQuery ??? ?? ?? ??? ??? ?? ???? ????:

$(document).ready(function(){
? // jQuery ?? ??? ?????.. .
});

??? ??? ??(??)?? ?? jQuery ??? ???? ?? ???? ?? ????.

??? ??? ???? ?? ??? ???? ??? ??? ? ????. ??? ? ?? ???? ????.

????? ??? ???? ??? ?? ?? ???? ?? ??? ???? ???.

?: ??? ??(?? ?? ??):

$(function(){
???????????????????????????????????jQuery ?? ?? code...
});

??? ??? ? jQuery ???? ????? ?? ? ?? ???? ???? ???.


???? ??
||
<!DOCTYPE html> <html> <head> <script src="http://lib.sinaapp.com/js/jquery/2.0.2/jquery-2.0.2.min.js"></script> <script> $(document).ready(function(){ $("button").click(function(){ $("p").hide(); }); }); </script> </head> <body> <h2>這是一個(gè)標(biāo)題</h2> <p>這是一個(gè)段落。</p> <p>這是另一個(gè)段落。</p> <button>點(diǎn)我</button> </body> </html>