Home > Backend Development > PHP Tutorial > php怎么实现刷新当前页面返回上一页

php怎么实现刷新当前页面返回上一页

WBOY
Release: 2016-06-13 13:31:54
Original
2516 people have browsed it

php如何实现刷新当前页面返回上一页?
用php写的小程序,没有做缓存什么的。直接和html混编的。
每刷新一次页面都会对数据库查询一次。
所以我想实现刷新当前的页面直接返回上一页

------解决方案--------------------
echo "window.location.href=history.go(-1)";
?>

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