jQuery - ?? ??
jQuery Method Chaining
???? ??? jQuery ?? ? ?? ???(??? ???) ??????.
??? ??? ??? ?? ?? jQuery ??? ??? ??? ? ?? ??? ?????? ??? ????.
?: ??? ?? ????? ??? ??? ?? ? ?? ??? ????.
??? ????? ?? ??? ??? ????? ?? ???.
?? ????? css(), SlideUp() ? SlideDown()? ?? ?????. "p1" ??? ?? ????? ?? ?? ?? ????? ?? ??? ???????.
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"> </script> <script> $(document).ready(function() { $("button").click(function(){ $("#p1").css("color","red").slideUp(2000).slideDown(2000); }); }); </script> </head> <body> <p id="p1">php中文網(wǎng)!!</p> <button>點(diǎn)我</button> </body> </html>
?: ??? ? ?? ?? ?? ?? ????. ??? jQuery ??? ??? ???? ??? ? ?? ? ????? ???? ??? ???? ??? ? ????.
??? ?? ???? ?? ? ?????.
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"> </script> <script> $(document).ready(function() { $("button").click(function(){ $("#p1").css("color","red") .slideUp(2000) .slideDown(2000); }); }); </script> </head> <body> <p id="p1">php中文網(wǎng)!!</p> <button>點(diǎn)我</button> </body> </html>
jQuery? ??? ??? ??? ?? ?? ?? ??? ? ?? ?? ?????.