jQuery ajax()方法

语法

//语法
$.ajax({name:value, name:value, ... })

//用法
$("button").click(function(){
    $.ajax({url:"demo_test.txt",success:function(result){
        $("#div1").html(result);
    }});
});

参数列表:

 

猜你喜欢

转载自blog.csdn.net/qq_36897901/article/details/90573088