how to use jquery ajax array post json?

后端 未结 3 1776
走了就别回头了
走了就别回头了 2021-01-26 17:59

i want to send array in ajax json post ,but some code are error.how to fig this code?

HTML

 
3条回答
  •  忘掉有多难
    2021-01-26 18:14

    It's the way you have the click events set up that are causing you your problems. It should look more like this:

    $('#save-menu').click(function() {
      $.post(... ajax stuff...);
    });
    

提交回复
热议问题