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

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

WBOY
WBOYOriginal
2016-06-13 13:31:542524browse

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

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

Statement:
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