<p>1、POSTMAN的请求模式选择:POST</p><p><p style="text-align: center;"><img src="/upload/content/20191211/1576035338531530.png" alt="POSTMAN模拟Ajax请求"title="POSTMAN模拟Ajax请求" width="550px"></p><p>2、Headers增加参数:</p><p>Content-Typ为:application/x-www-form-urlencoded</p><p>X-Requested-With 为:xmlhttprequest</p><p><p style="text-align: center;"><img src="/upload/content/20191211/1576035368664307.png" alt="POSTMAN模拟Ajax请求"title="POSTMAN模拟Ajax请求" width="550px"></p><p>3、Body选择为:x-www-form-urlencoded,参数为模拟AJAX提交的内容</p><p><p style="text-align: center;"><img src="/upload/content/20191211/1576035417343744.png" alt="POSTMAN模拟Ajax请求"title="POSTMAN模拟Ajax请求" width="550px"></p><p>4、填写需要的参数后就可以模拟ajax发送请求了。<br/></p><p>后端Ajax验证代码:<br/></p><p><p style="text-align: center;"><img src="/upload/content/20191211/1576035500487617.png" alt="POSTMAN模拟Ajax请求"title="POSTMAN模拟Ajax请求" width="550px"></p><p>请求后的结果:</p><p><p style="text-align: center;"><img src="/upload/content/20191211/1576035545606190.png" alt="POSTMAN模拟Ajax请求"title="POSTMAN模拟Ajax请求" width="550px"></p>