原生Ajax 和jQuery Ajax的区别示例分析(2)


<script type="text/javascript">
$('#list li').click ( function () {                      
        $.ajax({                          
            type:'GET',                           
            data:'',                          
            ,                          
            success:function(data){                               
                $('#inf').html(data);                               
            },
            dataType:'text',
            error:function (){               
                alert("失败!");           
            }
        })                   
    });
</script>

您可能感兴趣的文章:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wgxxjz.html