How to force IE to reload javascript?

后端 未结 10 1381
清酒与你
清酒与你 2020-12-12 20:41

I\'m using IE 8 on Vista, and everytime I change a javascript file and then start debugging, I have to hit Ctrl+F5 to have it reload my javascript. Is there any way to make

10条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-12 21:22

    Add a date of modification of js file at the end of your URL. With PHP it would look something like this:

    echo '';
    

    When your script will be reloaded every time you update it.

提交回复
热议问题