我的 index.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    <script src="jquery.js"></script>
    <script>
     $(function(){
       $("button").click(function(){
         $("div").load("AJAX_page.php");
       });
       $("span").on("click",function(){alert("This function is necessary")})   
     });
    </script>
  </head>
  <body>
   <button>LOAD</button>
   <span>Click on me After clicking on button</span>
   <div></div>
  </body>
</html>
还有我的 AJAX_page.php
<body>
<script>
$(function() {
    $("span").on("click", hello);
    function hello() {
        alert("hi");
    }
});
</script>
</body>
现在我的问题是
- 首先当你点击按钮,然后如果你点击跨度它会提醒你好,这个功能是必要的 
- 再次,如果您单击按钮,它将提醒您好, 此功能是必要的2 次 
- 再次,如果你点击按钮,它会提醒你好, 这个功能是必要的3 次,依此类推 
现在我希望它只提醒这个功能是必要的,并且 无论点击多少次按钮都只需要一次你好?