Flask - response to a POST - confusing behaviour

前端 未结 2 871
刺人心
刺人心 2021-01-27 07:26

I am completely confused by the following behaviour in Flask. I am sure there is something basic going on but I don\'t know if this is a script or a server issue, so I posted th

2条回答
  •  有刺的猬
    2021-01-27 08:28

    The browser will not render the response from XmlHttpRequest unless you tell the browser via JS to do so. I suggest you take a look at the 'Development Tools' of your browser and check under the Network tab. You will see your XHR's response in there but it will not replace the content or your browser.

提交回复
热议问题