how to send Synchronous and asynchronous ajax requests 如何发送同步和异步 ajax 请求

Lenix at 
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 exp……