写JS的时候,想强制刷新页面,有些代码却不能很好的兼容
如 location.reload();history.go(0);
不知道哪里找到的下面这句,可以都兼容
window.location.href = window.location.href;