I send the 1st request to the server, I get a response. I send the 2nd, the response from the server is different, I looked through Charles, but the answer is displayed from the 1st request, what should I do? (The problem occurs in Chrome)
var response31 = new XMLHttpRequest(); response31.onload = function() { alert(this.responseText); var response3 = new XMLHttpRequest(); response3.onload = function() { alert(this.responseText); } response3.onerror = function() { stopper(); } response3.open('POST', protocol + '....', true); response3.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded') response3.send('....'); } response31.onerror = function() { stopper(); } response31.open('POST', protocol + '....', true); response31.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded') response31.send('.....');