js从后台获取数据时,防止页面缓存问题,url后加时间戳

例如:

url : "/user/user/report/access?limit=5&timestamp=" + new Date().getTime(),//解决浏览器缓存问题",

后台方法秩序按着正常的写,不用理会timestamp参数名

猜你喜欢

转载自blog.csdn.net/qq_29175301/article/details/78413593