首页> 中文期刊>淮北师范大学学报(自然科学版) >基于Ajax XmlHttpRequest技术的通信实例及调试

基于Ajax XmlHttpRequest技术的通信实例及调试

     

摘要

从应用原理、运行代码和断点分析3个层面对Ajax XmlHttpRequest技术的优点进行论述,提出该技术的运用可以减少前台和服务器的通信数据量,提高通信效率。通过对Ajax技术的简要介绍和与传统B/S交互模式的对比分析后,详述造成Ajax通信高效的两个原因。其次给出以密码校验为例的html、js、php和其完整的代码实例,并指出该代码在云平台和手机端验证通过而生成。最后利用chrome浏览器内嵌调试器进行断点调试,记录通信阶段的关键值,从而进一步揭示 Ajax XmlHttpRequest整个通信过程。%It is accepted that Ajax XmlHttpRequest technology can reduce the amount of communication and improve 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 XmlHttpRequest.Secondly,complete code exam⁃ples of HTML,JS,PHP are verified through the platform of computing cloud and mobile phone.Finally,key values of communication stage are recorded after using embedded chrome browser debugger to test its break⁃point reaction.Therefore,the communication process of Ajax XmlHttpRequest is further revealed.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号