Abstract:
This paper analyzes the work principle and data transmission performance of Ajax, and discusses the difference between XML and JSON by experiments with a focus on the format of response data returned. Some suggestions to choose either based on the current application scenarios are given, an optimized model of Ajax which is more efficient and secure is summarized, which improves the shortcomings such as data response redundancy caused by Ajax nowadays.
Key words:
Ajax,
data response,
XML transmission format,
JSON transmission format
摘要: 对Ajax工作原理和数据传输性能进行分析,从响应数据的返回格式角度入手,通过实验,对比2种数据格式XML和JSON的差异与优劣,基于实际应用场景,给出权衡取舍的建议,总结出效率和安全性更高的Ajax模型,改善了目前Ajax带来的数据响应冗余的 缺陷。
关键词:
Ajax技术,
数据响应,
XML传输格式,
JSON传输格式
CLC Number:
TAN Li; YANG Zong-yuan; XIE Jin-kui. Data Response Optimization of Ajax[J]. Computer Engineering, 2010, 36(7): 52-54.
谭 力;杨宗源;谢瑾奎. Ajax技术的数据响应优化[J]. 计算机工程, 2010, 36(7): 52-54.