I have solved this with PHP by adding the 'time()' to the img src tag.
But how is it done with Javascript, same way?
Here is my code:
 th_div_html+= "<img src='"+path_th_img+"' class='shadow2' style='margin:7px;' onclick='imageShow("+z+");'&g开发者_Python百科t;";
I'm better with PHP than javascript so I need your help on this one.
How can I add something like the 'time()' function to this img tag with javascript ?
Thanks
img.src = 'img.jpg?' + Math.random();
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论