SONP请求:xhr.setRequestHeader('x-my-custom-header', 'some value'); 或者在请求b.jsp前先请求一个中转页,专门根据参数设置header的中转页