首页javascriptpjQuery HTML Element - 如何句柄段点击事件...

jQuery HTML Element - 如何句柄段点击事件...

我们想知道如何句柄段点击事件。...

 
<html>
  <head>
    <script type="text/javascript" src='http://code.jquery.com/jquery-1.5.2.js'></script>
    <script type="text/javascript">
        $(document).ready(function(){
              $("p").after( document.createTextNode("Hello") );
        });
    </script>
  </head>
  <body>
     <p> a</p><b>b</b>
  </body>
</html>