亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

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>這是一個標(biāo)題</h2> <p>這是一個段落。</p> <p>這是另一個段落。</p> <button>點(diǎn)我</button> </body> </html>