jQuery? ??? ??
????? jQuery ??
????? jQuery? ???? ???? ?? ??? ????. ?? ??? ??? ? ????.
jquery.com?? jQuery ????? ????
Google?? jQuery ??? ?? CDN?? jQuery ??
jQuery ????
????? ? ?? jQuery ??? ? ??? ????.
???? ?? - ?? ?????? ???? ????? ???????.
?? ?? - ??? ? ???(???? ?? ?? ??? ??)
?? ? ?? ?? jquery.com?? ????? ? ????.
jQuery ?????? HTML <script> ??? ???? ??? ? ?? JavaScript ?????:
<head>
<script src="jquery-1.10.2.min.js"></ script></head>
??: jQuery? ????? ????? ??? ????? ??? ????? ?????.
??
jQuery? ?????? ????? ?? ??? CDN(Content Delivery Network)? ?? ??? ?? ????.
Baidu, Youpaiyun, Sina, Google ? Microsoft ?? ??? jQuery? ???? ????.
??? ???? ??? ?? ???, ????, ?? ? ?? CDN ??? ???? ?? ????. ??? ?? ??, ???????? ????? ???.
??: ? ???? ?? ??? Baidu jQuery CDN ?????? ?????.
<head><script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js">
</script></head>
?:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php.cn</title> <script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"> </script> <script> $(document).ready(function(){ $("#hide").click(function(){ $("p").hide(); }); $("#show").click(function(){ $("p").show(); }); }); </script> </head> <body> <p>歡迎大家來(lái)到php.cn</p> <button id="hide">隱藏</button> <button id="show">顯示</button> </body> </html>