var ajax = new XMLHttpRequest();
ajax.open('post','https://api.juejin.cn/growth_api/v1/lottery/draw',true);
ajax.withCredentials = true;
ajax.setRequestHeader('content-type','application/json; charset=utf-8');
ajax.send(JSON.stringify({}));
ajax.onreadystatechange = function (){
if(ajax.readyState==4&&ajax.status==200){
var c = ajax.responseText;
console.log(c)
}
}
什么都不用改,直接复制过去运行,可以跳过抽奖动画