我需要使用PHP和Js在我的网站中添加通知功能,就像Facebook一样。我应该怎么开始? [英] I need to add the notification feature in my website like that of Facebook using PHP and Js. How should I start?
本文介绍了我需要使用PHP和Js在我的网站中添加通知功能,就像Facebook一样。我应该怎么开始?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
用户应该在表格中插入时收到通知,当他点击它时,通知应该消失。
解决方案
看起来像你需要服务器推送: http://en.wikipedia.org/wiki/Push_technology [< a href =http://en.wikipedia.org/wiki/Push_technologytarget =_ blanktitle =New Window> ^ ]。
一种流行的方法是使用SignalR:
https://en.wikipedia.org/wiki/ SignalR [ ^ ],
http://www.asp.net/signalr [ ^ ]。
-SA
The user should get a notification whenever there is an insert in a table and when he clicks on it, the notification should disappear.
解决方案
It looks like you need server push: http://en.wikipedia.org/wiki/Push_technology[^].
One popular approach is using SignalR:
https://en.wikipedia.org/wiki/SignalR[^],
http://www.asp.net/signalr[^].
—SA
这篇关于我需要使用PHP和Js在我的网站中添加通知功能,就像Facebook一样。我应该怎么开始?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文