PHP刷新窗口?相当于F5页面重新加载? [英] PHP refresh window? equivalent to F5 page reload?

查看:224
本文介绍了PHP刷新窗口?相当于F5页面重新加载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

PHP中是否有什么等效于手动按F5页面重新加载按钮的操作?我的php脚本位于框架中,而不是父脚本,但它需要刷新整个页面,而不仅是框架.

Is there anything in PHP that is the equivalent of manually pressing the F5 page reload button? My php script is in a frame and isn't the parent script but it needs to refresh the entire page and not just it's frame.

推荐答案

使用PHP,您只能处理服务器端的内容.您可以做的就是在iframe中打印此内容:

With PHP you just can handle server-side stuff. What you can do is print this in your iframe:

parent.window.location.reload();

这篇关于PHP刷新窗口?相当于F5页面重新加载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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