Home > Backend Development > PHP Tutorial > php怎么实现前台数据自动更新

php怎么实现前台数据自动更新

WBOY
Release: 2016-06-13 10:15:56
Original
1427 people have browsed it

php如何实现前台数据自动更新
比如:管理员在后台给客户充值100元,客户在前台不刷新页面的情况下,可以看到自己的金额发生变动了

------解决方案--------------------
前台使用ajax
------解决方案--------------------
有两种方法,一个是AJAX异步刷新,另一个是服务器推送,但是服务器推送比较耗费服务器资源,所有用AJAX异步刷新比较好
------解决方案--------------------
ajax 异步更新

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template