作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2010, Vol. 36 ›› Issue (7): 52-54. doi: 10.3969/j.issn.1000-3428.2010.07.018

• 软件技术与数据库 • 上一篇    下一篇

Ajax技术的数据响应优化

谭 力,杨宗源,谢瑾奎   

  1. (华东师范大学计算机科学技术系,上海 200241)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2010-04-05 发布日期:2010-04-05

Data Response Optimization of Ajax

TAN Li, YANG Zong-yuan, XIE Jin-kui   

  1. (Department of Computer Science and Technology, East China Normal University, Shanghai 200241)
  • Received:1900-01-01 Revised:1900-01-01 Online:2010-04-05 Published:2010-04-05

摘要: 对Ajax工作原理和数据传输性能进行分析,从响应数据的返回格式角度入手,通过实验,对比2种数据格式XML和JSON的差异与优劣,基于实际应用场景,给出权衡取舍的建议,总结出效率和安全性更高的Ajax模型,改善了目前Ajax带来的数据响应冗余的 缺陷。

关键词: Ajax技术, 数据响应, XML传输格式, JSON传输格式

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

中图分类号: