即时通讯 实现原理有两种

1、ajax 轮询

使用定时器 每隔1s时间 发送ajax到后台(性能不好)

2、ajax 轮询

使用定时器 每隔1s时间 发送ajax到后台

原文地址:https://www.cnblogs.com/maizilili/p/12974115.html