嗨伙计们以这种方式加载弹出屏幕
<script>
function show_popup(){
$('#popup-container').load(html);
$('.popup').fadeIn();
}
</script>
在我的HTML
上<a onlick="show_popup('popup/view-content')" href="#">
我的问题是当html被加载时,之前的html加载可以在新的显示之前看到一段时间..我怎样才能卸载以前的html。
视图似乎缓存显示以前的html如何删除之前的html然后加载新的
答案 0 :(得分:0)
要从页面中删除缓存,您需要将其包含在页面顶部: -
$this->output->set_header("Expires: Tue, 01 Jan 2000 00:00:00 GMT");
$this->output->set_header("Last-Modified: " . gmdate("D, d M Y H:i(worry)") . " GMT");
$this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
$this->output->set_header("Cache-Control: post-check=0, pre-check=0", false);
$this->output->set_header("Pragma: no-cache");