btn3.onclick=()=>$.ajax({
type : "get",
url: "http://server.com/getCookie",
xhrFields:{
withCredentials:true
},
crossDomain: true,
success: function(json){
result = json;
}
});
https://blog.csdn.net/qq_38527695/article/details/104899751?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param