jQuery - 如果数据库已更新,请更新页面 [英] jQuery - If a database is updated, update the page

查看:145
本文介绍了jQuery - 如果数据库已更新,请更新页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Righteo,刚刚开始乱七八糟,我可以更新数据库等,但我想知道是否有一种方法来显示新的信息发布到数据库(即使它不是刚刚发布的)没有重新加载等。

Righteo, Just started messing with Jquery, and I can update a database etc with it, but I want to know if there is a way to display new info posted into a database (even if it is not what was just posted) without a reload etc.

不要为我写,只是指向正确的方向...我想把它一起自己..最好的方法学习:D

Don't write it out for me, just point me in the right direction... I want to pull it together myself.. best way to learn :D

推荐答案

最简单的解决方案是定期轮询服务器。

Easiest solution is to poll to server periodically.

如果您希望服务器推送给您,请使用 Comet

If you want the server to push to you, use Comet.

这篇关于jQuery - 如果数据库已更新,请更新页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆