【发布时间】:2016-11-25 17:09:24
【问题描述】:
一个简单的例子:
<img id="example" source="example.png"> // This is my container in another file
<scipt>
// Here I execute a php script that changes the image 'example.png'
$('#example').hide().load('content/content.php #example').show();
</script>
这个脚本完成后,图片没有更新。
有没有办法强制刷新#example 的缓存。
类似:
<scipt>
// Here I execute a php script that changes the image 'example.png'
$('#example').hide().load('content/content.php #example').show();
// Refresh Cache for #example or execute php(refresh)
</script>
谢谢
【问题讨论】:
标签: javascript php jquery html caching