Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
知道像 facebook 这样的自动刷新新闻提要是如何工作的吗?我们正在开发一个类似于 facebook 的新闻提要功能的网站。
如果通过自动刷新您的意思是在用户在页面上时进行更新,您可以通过网络套接字进行更新,或者使用较旧的技术只需每 x 秒进行一次简单的 ajax 检查,然后注入内容。