AJAX https POST requests using jquery fail in Firefox

前端 未结 5 1630
盖世英雄少女心
盖世英雄少女心 2021-02-11 02:03

I have a simple list of records in an HTML table with a delete link for each row. The delete link shoots off an AJAX post request to a fixed url that looks like: \"/delet

5条回答
  •  南旧
    南旧 (楼主)
    2021-02-11 02:24

    I got $.post to work in Firefox by sending an empty object as the data parameter. Notice the empty brackets for parameter 2:

    $.post(url, {}, function(response){ alert('done'); }, "json");
    

提交回复
热议问题