This post was last edited by u010572351 on 2013-08-27 17:17:56
1. Async is Ajax, right?
2.
Just a little confused about this thing, he made a request to PHP file, he is not Ajax? When do you use him? What is the difference and connection between him and Orthodox Ajax?
Reply to discussion (solution)
Ajax can have triggering events
The script form load loads directly on the
Ajax can have triggering events
The script form load loads directly on the
Is that the difference?
The first one is a method of JS, the second is JS loading.
No second, which comes first.
You can also use the second to achieve the first.
Simply put, async just doesn't wait to return
Ajax can return any data: XML, Text, JSON, JS scripts
Named when the contract returns XML, now expands the
Script SRC can only accept JS script
You can also load dynamically
is available
document.getElementById (' js '). src = ' b.php?x=123 ';
Load the required scripts
JSONP is the use of this to achieve cross-domain
AJAX = asynchronous JavaScript and XML.
AJAX is a technique for creating fast, Dynamic Web pages.
AJAX enables Web pages to be updated asynchronously by exchanging small amounts of data in the background with the server. This means that you can update a part of a webpage without reloading the entire page.
Traditional Web pages (without AJAX) if you need to update the content, you must reload the entire page surface.
Load remote PHP files across domains
Ajax is a way of calling asynchronously, preferably with JQ, because it takes into account the issue of multiple browser versions