Call php function in javascript without waiting for response

后端 未结 3 790
野趣味
野趣味 2021-01-29 09:03

I know how to use $.ajax. I have a Codeigniter project so I just call:

url:\'\', 

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-29 09:26

    You can use the following for sending asynchronous request with additional parameters.

    $.ajax({
        type: "POST",
        url: url,
        data: data, // additional parameters 
        async:true,
        success: function(response){    
        }
    });
    

提交回复
热议问题