Refresh Image PHP and Javascript

前端 未结 2 1458
予麋鹿
予麋鹿 2021-01-21 12:50

I am using a Comet, Realtime engine called APE, and I am using jQuery to refresh a PHP image. Initially I load the image like this:

2条回答
  •  执念已碎
    2021-01-21 13:15

    Add an extra random variable onto the image path.

    $("#container").html(' Loading ...');
    

    That will make it appear like a different URL and cause the browser not to cache. This is the same tactic used by YUI.

提交回复
热议问题