摘要
在很多Web应用系统中,都需要将服务器端的最新数据实时地发送到客户端,而不需要客户端不停刷新、发送请求。传统Web模式和Ajax模式虽然都解决了一部分问题,然而也都存在着一定的缺陷,Comet技术则较好地解决了传统Web模式和Ajax技术中存在的不足。介绍了Comet技术的相关原理及实现,并运用该技术对一个简单无刷新聊天室进行了实现。
In many Web application systems, we always need to send the server's newly data to client, instead of the client's continuous refreshment and request. Though the traditional Web model can solve some of the problems, they still have some shortcomings, while Comet technology can solve them perfectly. This article introduces the principle and implementation of Comet technology in detail, and implement a simple no refreshment chat room in Comet technology.
出处
《煤炭技术》
CAS
北大核心
2011年第12期153-154,共2页
Coal Technology