函数
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> <style type="text/css"> img{border:1px solid #aaa;} </style> <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script> <script type="text/javascript" > $(function(){ alert("hello me."); }); $(function(){ alert("goodbye."); }); </script> </head> <body> <ul> <img src="check.php"/> </ul> </body> </html>