答案 0 :(得分:2)
您必须侦听HashChangeEvent并向位置搜索对象添加查询参数(如时间戳):
function locationHashChanged() {
var dstringquery = `d=${new Date().getTime()}`;
location.search = location.search.length === 0 ? dstringquery : (location.search + '&' + dstringquery);
}
window.onhashchange = locationHashChanged;