【发布时间】:2015-10-11 04:48:09
【问题描述】:
我在我的页面上使用 angular ng-include。每次我对包含的 .html 进行更改时,这些更改都不会在 chrome 和 Opera 上生效,但会在 Firefox 上生效。我正在使用 XAMPP 来运行我的页面。有什么想法吗?
【问题讨论】:
标签: html angularjs google-chrome firefox xampp
我在我的页面上使用 angular ng-include。每次我对包含的 .html 进行更改时,这些更改都不会在 chrome 和 Opera 上生效,但会在 Firefox 上生效。我正在使用 XAMPP 来运行我的页面。有什么想法吗?
【问题讨论】:
标签: html angularjs google-chrome firefox xampp
这可能是因为 angular 的$templateCache。
一个快速的解决方案是刷新浏览器的缓存,或者在 Chrome 开发工具中点击右下方的齿轮并勾选选项Disable cache (while DevTools is open)
【讨论】: