首页 | 本学科首页   官方微博 | 高级检索  
     

采用异步技术动态显示服务器当前系统时间
引用本文:娄不夜.采用异步技术动态显示服务器当前系统时间[J].数字社区&智能家居,2007,1(6):1481.
作者姓名:娄不夜
作者单位:首都经济贸易大学信息学院 北京100026
基金项目:北京市教委科技发展计划面上项目(KM200610038001)
摘    要:文章介绍采用异步技术在客户端Web页面上动态显示服务器当前系统时间的方法。在客户端每隔一时间间隔通过XML-HttpRequest对象向服务器发出异步请求,获取并显示服务器系统时钟的当前时间。在服务器端采用异步页面模式由一线程来产生基于系统时钟的当前时间,而接受客户端请求的组件则可直接读出该时间并返回客户端。

关 键 词:系统时间  异步请求  异步页面模式
文章编号:1009-3044(2007)06-11481-01
修稿时间:2007年3月20日

Dynamically Display Server's Current System Time Using Asynchronous Pattern
LOU Bu-ye.Dynamically Display Server''''s Current System Time Using Asynchronous Pattern[J].Digital Community & Smart Home,2007,1(6):1481.
Authors:LOU Bu-ye
Abstract:This acticle introduces a way to dynamically disply the server's current system time in Web page, using asynchronous pattern. The client send aynchronous request for server's current time at a certain interval using XMLHttpRequest object, and display when a response arrives. On the server side, A independent thread produces and stores server's current time at a certain interval asynchronously. When a request arrives, the component which process the request reads simply the time and responses with the time.
Keywords:System Time  Asynchronous Request  Asynchronous Page Pattern
本文献已被 CNKI 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号