how to send Synchronous and asynchronous ajax requests 如何发送同步和异步ajax请求
XMLHttpRequest
supports both synchronous and asynchronous communications. In general, however, asynchronous requests should be preferred to synchronous requests for performance reasons.
Synchronous requests block the execution of code which causes "freezing" on the screen and an unresponsive user experience.
近期评论