在我的 javascript 代码中,在某些时候,我需要刷新窗口(用户已上传新图像,但在页面中仍然可以看到它)
我想知道为什么
location.href = location.href
不刷新窗口?
要刷新窗口,请尝试:
window.location.reload();