Ajax:
XML: Extensible Markup Language, markup customizable
JSON: Object-like language
Function:
Interacting with data in different languages
The disadvantage of XML: 1, too much code writing content
2, data extraction is more cumbersome
ASHX: General handler, its inheritance level
is higher than the Web form level, but features
Relatively few.
------------------------------------------------------
However, Ajax is not a hint to write, must be careful
Json:
You can put it into a string, it's fixed format:
{"username": "Zhangsan", "Password": "1234", "nickname": "Zhang San"}
Just don't want to let the page refresh, because it is annoying
Using JS to realize the interaction between data and database
Use JS to submit the data to the server, the service end is finished, and the data back to JS,
JS will return the data back to the page update, will not refresh the page
JSON returns a bunch of object data:
[{"Name": "Zhangsan", "pwd": "1234"},{"name": "Lisi", "pwd": "12345"}]
-------------------------------------------------------------------------
Ajax writing BASIC structure:
General handlers:
Ajax Basics (i)