在用fetch进行表单提交时,参照https://github.com/github/fetch的用法
let data = new FormData(document.getElementById('login-form'))
fetch('../membership/authenticate', {method: "POST",
headers:{
'Content-Type': 'application/x-www-form-urlencoded'
},
body: data}).then(function(response) {
},function(error){
})
格式被转为了WebKitFormBoundary模式:
此时我后端springMvc是取不到Key值。
明明已经设置了ContentType为application/x-www-form-urlencoded,设置 enctype 属性,那么最终就会以 application/x-www-f