What is Ajax and JSON, their strengths and weaknesses?

ajax concept: ajax is a small amount of data exchanged with the server through the background, to achieve asynchronous page updates

                是一种创建交互式网页应用的网页开发技术。

json concept: json is a lightweight data interchange format, and has good characteristics for quick-readable prepared

ajax advantages and disadvantages of
advantages: asynchronous request fast response, good user experience; no page refresh, partial data update; on-demand access to data, reducing the burden of redundant requests and server;

Cons: asynchronous callback question, this points to a problem, routing jump back problems; support for the search engines is relatively weak, for some phones is not well supported

The advantages and disadvantages of json

  • Data format is relatively simple, easy-to-read format are compressed, small footprint broadband
  • Support for multiple languages, .JSON relatively simple encoding format
  • JSON decoding less difficult than the simpler XML
  • JSON is more convenient and interactive js
  • JSON is much faster than XML

Guess you like

Origin www.cnblogs.com/zcsmile/p/10969372.html