//实现点击一个按钮,alert一个小窗口 <!DOCTYPE html> <html> <head> <title>jquery</title> <script type="text/javascript" src="jquery-1.8.2.min.js"></script> </head> <body> <button>click me</button> <script> $(document).ready(function(){ $('button').click(function(){ alert('hello jquery'); }) ; }); </script> </body> </html>