检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]河北交通学院网络教研室,河北石家庄050035 [2]北京交通大学计算机与信息技术学院,北京100004
出 处:《计算机应用与软件》2015年第1期263-266,共4页Computer Applications and Software
基 金:河北省高等学校科学研究计划青年基金项目(Q2012110)
摘 要:针对Ajax采用XML作为数据载体存在标签大量冗余、基于DOM解析复杂导致数据传输量大、服务器与客户端解析效率低的问题,提出一种基于JSON的Ajax数据通信快速算法。分析服务器端应答Ajax引擎请求数据的结构,设计有限状态机模型实现应答数据集转换为JSON格式的方法,提高了Ajax数据传输和解析的效率。实验结果表明,该算法较以XML为数据载体的通信速度更快,解析效率更高,具有更好的用户体验度。Aiming at the problems of Ajax that it has a large number of redundant tags when using XML as data carrier, a large amount of data transmission caused by DOM-based complex parsing, and low data parsing efficiency in server and client, we present a JSON-based fast algorithm for Ajax data communication. The paper analyses the structure of server response data in regard to Ajax engine request, designs an approach of finite state machine model which converses the response dataset to JSON format, improves the efficiency of Ajax data transmission and parsing. Experimental results show that compared with using XML as data carrier, this method is faster in communication speed, more efficient in parsing and has better user experience.
关 键 词:JSON Ajax数据通信 有限状态机 快速算法
分 类 号:TP311.52[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:18.117.197.188