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.
我想制作一个基于在线数据库的聊天应用程序。我的问题是检测数据库中的变化,即每当用户向另一个用户发送消息时,它应该显示给他。一种方法是使用 Ajax 调用,setinterval但我想要一个即时解决方案。我不想让服务器忙于这样的 Ajax 调用。
setinterval