摘要
从应用原理、运行代码和断点分析3个层面对Ajax Xml Http Request技术的优点进行论述,提出该技术的运用可以减少前台和服务器的通信数据量,提高通信效率.通过对Ajax技术的简要介绍和与传统B/S交互模式的对比分析后,详述造成Ajax通信高效的两个原因.其次给出以密码校验为例的html、js、php和其完整的代码实例,并指出该代码在云平台和手机端验证通过而生成.最后利用chrome浏览器内嵌调试器进行断点调试,记录通信阶段的关键值,从而进一步揭示Ajax Xml Http Request整个通信过程.
It is accepted that Ajax Xml Http Request technology can reduce the amount of communication andimprove its efficiency between data reception and communication server. The paper aims to analyze the ad-vantage of this technology from three different levels including its application principle,deep analysis of run-ning code and breakpoint reaction.Firstly,compared with classic B/S interactive mode,two reasons for the effi-cient communication are probed after brief introduction to Xml Http Request.Secondly,complete code exam-ples of HTML,JS,PHP are verified through the platform of computing cloud and mobile phone.Finally,keyvalues of communication stage are recorded after using embedded chrome browser debugger to test its break-point reaction.Therefore,the communication process of Ajax Xml Http Request is further revealed.
出处
《淮北师范大学学报(自然科学版)》
CAS
2016年第4期42-47,共6页
Journal of Huaibei Normal University:Natural Sciences