AJAX .post async

廉价感情. 提交于 2019-12-06 01:39:18

From the jQuery site:

By default, all requests are sent asynchronously (i.e. this is set to true by default). If you need synchronous requests, set this option to false. Cross-domain requests and dataType: "jsonp" requests do not support synchronous operation. Note that synchronous requests may temporarily lock the browser, disabling any actions while the request is active.

That's all there is to it. If you need help on a specific problem let me know.

The async call not "break" execution of javascript code. Need callback's function for when return of request from server delivery. It is more complicate to development and need more control of your´s functions.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!