Home  >  Article  >  Backend Development  >  实现微信墙功能得原理

实现微信墙功能得原理

WBOY
WBOYOriginal
2016-06-23 14:01:581217browse

小弟有点不是很理解,望大家解答。
大家把东西发来以后通过模拟登录获取相关信息,然后东西在数据库里面了,怎么在网页显示这些东西。
是让网页一秒钟刷新一次吗?


回复讨论(解决方案)

可用通过ajax定时刷新或者事件触发刷新。
也可以使用HTML5新定义的web socket接口与服务器进行长连接,进行上下行即时通信。

可用通过ajax定时刷新或者事件触发刷新。
也可以使用HTML5新定义的web socket接口与服务器进行长连接,进行上下行即时通信。
哦哦谢谢啦。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn