摘要
基于Ajax(Asynchronous JavaScript And XML)技术的W eb程序开发和应用主要采用传统的XML数据传输格式,这种数据格式不但会产生大量数据冗余,而且还存在着解析复杂等问题.将XML和JSON进行对比分析,最终选择JSON作为Ajax中的数据传输格式,并用jQuery来解析JSON数据.JSON传输格式可以屏蔽DOM解析XML文件的复杂性,缩短数据传输时间,解决Ajax Web应用系统中数据传输效率优化问题.提出一种Ajax+JSON+jQuery传输方案,通过实例证明这种传输方案能够有效提高W eb应用系统的数据传输效率,减少客户端的请求响应时间.
The traditional XML transmission format is mainly used in the development and application of the Web programs based on Ajax (Asynchronous JavaScript And XML)technology.The data format will engender not only large quantities of data redundancy but also other complex problems.Compared with the XML,the JSON is selected as the data transmission format and jQuery is used for analyzing the JSON data.Using JSON transmission format can shield the complexity of analyzing XML documents using DOM,which not only shorten the data transmission time but also optimize the data transmission efficiency in the Ajax Web application system.An 'Ajax + JSON + jQuery' transmission scheme can put forward,and cases prove that this scheme can improve the data transmission efficiency of Web application system and reduce the response time of client requests.
出处
《西安石油大学学报(自然科学版)》
CAS
北大核心
2011年第1期95-98,122,共4页
Journal of Xi’an Shiyou University(Natural Science Edition)
基金
国家自然科学基金项目"远程钻井网上会战智能应用系统理论与方法的研究"(编号:50074024)