沼泽的HTML脚本不更新 [英] wamp html script not updating
问题描述
我正在尝试使用wamp在本地运行基于php的Web应用程序.更改.php文件中的html脚本时,页面不会更新.但是,css文件中的更改正在更新.该问题有任何解决方法吗?
I am trying to run a php based web app locally using wamp. On making changes to the html script in .php file, the page does not get updated. However, changes in css files are being updated. Any fixes to the issue?
推荐答案
如果您在查看页面时未反映出代码更改,则可能是浏览器已将其缓存.
If your code changes dont get reflected when you view the page, it has probably been cached by the browser.
始终使用CTRL + F5,以便在进行更改时刷新缓存.
Always use CTRL + F5 so the cache is refreshed when making changes.
或者,大多数浏览器都具有开发人员扩展,并且其中之一通常是关闭缓存的选项.您应该寻找并在开发网站时进行设置.
Alternatively most browsers have developer extension and one of those is usually an option to turn off caching. You should look for that and set it while developing a site.
这篇关于沼泽的HTML脚本不更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!