[英]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.