xfych
<script typet="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
        $(function(){
          $.ajax({
            url:\'cs.php\',
            type:\'post\',
            data:{\'name\':name,\'pwd\':pwd},
            dataType:\'json\',
            success:function(data){
              console.log(data);
            },
            error:function(){
                console.log(\'请求出错!\');
            }
        })
        });

    
 
        $(window).load(function(){
          alert("jquery ===== window load 第三种");
        });
 
  
 
         window.onload = function(){
          alert("window.onload =====onload  第四种");
         }
          
         $(document).ready(function(){
           alert("jquery =====  document  第二种");
         });

 

分类:

技术点:

相关文章: