当前位置: 代码迷 >> Ajax >> jquery ajax load 应用
  详细解决方案

jquery ajax load 应用

热度:595   发布时间:2012-11-22 00:16:41.0
jquery ajax load 使用
<html>
 <head>
  <script type="text/javascript" src="jquery-1.4.1.js"></script>
  <script type="text/javascript">
   $("document").ready
   (
     function()
     {
      
      $("a").click(function(){
       jiaz();
      });
      
     }
      );

   function jiaz()
   {
    $('#hello').load('http://www.baidu.com');
   }  
   </script>
 </head>
 
 <body>
  
  <a href="#">jquery ajax load html</a>
  <div id="hello">
   
  </div>
 </body>
</html>

?

?

?

  相关解决方案