var xhr = new XMLHttpRequest(); xhr.open(‘get’, ‘请求url’); //设置请求头 xhr.setRequestHeader(window.AUTH_HEADER, window.localStorage.getItem...