如何自动刷新新闻Feed [英] How to auto-refresh news feed
问题描述
嘿伙计们,我刚刚创建了一个新闻源,我想知道是否有办法用javascript或php自动刷新Feed,有点像facebook,而不刷新整个页面。在此先感谢。
Hey guys, I just created a news feed and I was wondering if there was a way to auto-refresh the feed with javascript or php, sort of like facebook, without refreshing the whole page. Thanks in advance.
推荐答案
为了学习ajax,我建议使用jquery而不是重新发明轮子。本教程将帮助您开始 http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery
And to learn ajax i would recommend using jquery rather then reinventing the wheel. this tutorial will get you started http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery
对于php方面也会有所帮助 http ://www.w3schools.com/php/php_ajax_intro.asp
also for the php side this will be helpful http://www.w3schools.com/php/php_ajax_intro.asp
这篇关于如何自动刷新新闻Feed的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!