解决方法:添加

contentType : 'application/json',
$.ajax({
  type: "POST",
  url: "/xxx",
  dataType:'json',
  contentType : 'application/json',
  async : 'false',
  data:{"name":1,"value2":2},
  success:function (data) {    
  }
});

 

posted on 2020-03-17 12:24  你不知道的浪漫  阅读(4142)  评论(0编辑  收藏  举报