It's asynchronous in that it doesn't lock up the browser. If you fire an Ajax request, the user can still work while the request is waiting for a response. When the server returns the response, a callback runs to handle it.
You can make the XMLHttpRequest
synchronous if you want, and if you do, the browser locks up while the request is outstanding (so most of the time this is inappropriate)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…