1. Ajax请求设置Type为Form-Data

在你Ajax请求中加上

headers : {
    'Content-Type' : 'application/x-www-form-urlencoded'
},

示例:

$.ajax({
    type : "POST",
    url : "../user/repwd",
    headers : {
      'Content-Type' : 'application/x-www-form-urlencoded'
    },
    data : data,
    dataType : "json",
});
Copyright © 試毅-思伟 2019 all right reserved,powered by 試毅-思伟修订时间: 2019-07-02 13:44:26

results matching ""

    No results matching ""