Asynchronous cross-domain POST request via JavaScript?

后端 未结 5 1863
一整个雨季
一整个雨季 2020-12-24 09:37

I could just create a form and use that to do a POST request to any site, thing is the FORM method isn\'t asynchronous, I need to know when the page has finished loading. I

5条回答
  •  萌比男神i
    2020-12-24 10:06

    If the data returned from the cross domain post is JSON, then you can dynamically add a script tag pointing to the URI that returns the data. The browser will load that "script" which then you can access from other javascript.

提交回复
热议问题