如何给静态html 引用的js或者css路径后面加上时间戳?
城堡下的诡洞
城堡下的诡洞 2017-03-09 09:17:23
0
2
1651

10.png

图上,每次进来都在引用路径后面添加时间戳,去除客户端的缓存

城堡下的诡洞
城堡下的诡洞

reply all(2)
数据分析师

How to add a timestamp to the end of the js or css path referenced by static html? -PHP Chinese website Q&A-How to add a timestamp to the end of the js or css path referenced by static html? -PHP Chinese website Q&A

Let’s take a look and learn.

迷茫

document.write('<link rel="stylesheet" href="index.css?time='+new Date().getTime()+'">');

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template