我需要一个以上的RequestHeaders,但这是不可能的,因为最后一个被另一个覆盖。
const Http = new XMLHttpRequest();
const url = 'https://api.ciscospark.com/v1/teams';
Http.open("POST",url);
Http.setRequestHeader("Authorization","Bearer dfiogpioj4309j340f9j039j43f092jf902j");
Http.setRequestHeader("Content-Type","application/json");
Http.send('name=TestTeamXY');
alert("test");
console.log("ksdfkskf");
const data = Http.responseText;
console.log(data);