在ajax提交中,遇到的400,415错误, application/json,或者是application/x-www-form-urlencoded;charset=UTF-8
post请求中参数是以 form data 和 Request Payload形式提交的form datafunction submit() { var postData = { name:"txzhang", age: 25, weight:80 }; $.ajax({ url: "/hello/save", ...
原创
2020-02-07 20:41:45 ·
762 阅读 ·
0 评论