使用jQuery重新加载图像

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了使用jQuery重新加载图像相关的知识,希望对你有一定的参考价值。

  1. // There is no reload or replace method for images. The src property can be set in the same way as the location.href property though.
  2.  
  3. with($('#image')) {
  4. src = src.replace(/?.*$/, '') + '?' + Math.random();
  5. }

以上是关于使用jQuery重新加载图像的主要内容,如果未能解决你的问题,请参考以下文章