[英]Required String parameter 'graphName' is not present
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
console.log("excel download");
}
};
xhttp.open("POST", "exportGraphExcel", true);
xhttp.setRequestHeader("Content-type", "application/msexcel");
xhttp.send('graphName=graphakki');
它在浏览器中给出 400 状态。 如果 Content-type 更改为“application/x-www-form-urlencoded”,则接受请求。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.