What book is this?
This is a technical book, mainly from the history, XMLHttpRequest objects, how to interact with the server, build a complete AJAX development toolkit, use the Jsunit test JavaScript code, in short, let us from this aspect to understand Ajax, And very good use of Ajax
Chapter One: Introduction to Ajax
The web app is done with the request.
Ajax requests are not recorded in the browser's history, and the back button does not return to the desired page
JsUnit and Selenium test tools
Chapter II: XMLHttpRequest Objects
Before sending requests and processing responses using the XMLHttpRequest object, you must first create a XMLHttpRequest object with JavaScript
If the request returns the same result as multiple requests, you can use the Get
You should use the Post method when changing the state on the server, post needs to set the Content-type header of the HttpRequest object
Xmlhttp.setrequestheader (' Content-type ', "application/x-www-form-urlencoded");
If you talk about browser technology and don't take security into account, the discussion is incomplete.
XMLHttpRequest is subject to the browser's sandbox, the resources requested by the XMLHttpRequest object must be within the same domain as the calling script, which makes it impossible to request resources outside the domain of the script
Dom refers to the content and structure of a document
Chapter III: Communicating with servers, sending requests and processing responses
"? timestamp=" + New Date (). GetTime () Ensure the uniqueness of the URL and avoid browser caching results
Ajax transmits data, text, Xml,json (most commonly used)
Fourth: Implementing Basic Ajax Technology
88-page Verification
Progress bar 111
Fifth: Building a complete AJAX Development Toolkit 140 pages
Document that uses JSDOC to build JavaScript code
To use Jsdoc,windows users must install the Perl environment
Using JSLint to complete JavaScript syntax checking
Memtronic Compression Tool
Writing tests can improve design, testing helps you think from an interface perspective, and test frameworks are also code customers
Seventh: Analysis of JavaScript Debugging tools and Techniques
Debug Ajax requests with Greasemokey, Greasemokey is a Firefox extension
Summary: The book is too old, but it still touches something.
Assertion: Assertions are often present in the debugger and are used to capture the assumptions of the Code,
Basic Ajax Tutorials