[转载]强制页面刷新图片的方法

有时,需要强制浏览器刷新页面的某个图片。比如,图片的文件名没有变化,但是图片的内容变化了。

办法是,每次给出文件名时,在文件名后面加个随机数即可,比如:

  1. <img src="file.jpg?1263" />
17fav 收藏本文
标签:

相关日志 随机文章

Comments

One Response to “[转载]强制页面刷新图片的方法”

  1. bianbian on 2006-08-12 7:48 pm

    这个也转,我就服了你了…

    [Reply]

Leave a Reply




请输入验证码

Use "<coolcode></coolcode>" to publish your code.

Line breaks and paragraphs are automatically converted.

Please keep comments relevant. Off-topic, offensive or inappropriate comments may be edited or removed.

京ICP备05059555号

收藏 & 分享

Powered by 17fav.com