1.请求行: xhr.open("get","xxx.php"); 2.请求头 参数1:键名 参数2:值 xhr.setRequestHeader('haha','goodday!'); 3.请求主体发送 xhr.send();