简体   繁体   English

图像类的GWT setUrl函数在IE中不起作用

[英]GWT setUrl function of Image class does not work in IE

Now i am using GWT , I am trying to change the image path, but it does not work in IE 现在我正在使用GWT,我正在尝试更改图像路径,但是在IE中不起作用

I am displaying image using Base64 encoding ..it displays image properly but when i am trying to change the image to another Base64 encoding image it does not work in IE 我正在使用Base64编码显示图像..它可以正确显示图像,但是当我尝试将图像更改为另一个Base64编码图像时,它在IE中不起作用

Please suggest me 请建议我

Thanks 谢谢

If you are using the same URL, IE will cache that image. 如果您使用相同的URL,则IE将缓存该图像。 What you need to do is slightly change the URL like adding some query string behind it ... for instance: http://localhost/mysite/image.jpg ? 您需要做的是稍微更改URL,例如在其后面添加一些查询字符串……例如: http://localhost/mysite/image.jpg reload=1 重新加载= 1

Or of course prevent the caching itself in the first place. 或者当然首先要防止缓存本身。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM