更新时间:2021-09-27 21:39:26
由于某种原因,您的代码试图导航到无效(不存在)的 URL,然后导致 window.location.href
是 chrome-error://chromewebdata
.
For some reason, your code is trying to navigate to an invalid (non-existing) URL, which then results in window.location.href
being chrome-error://chromewebdata
.
重申一下:没有直接重定向到 chrome-error://chromewebdata
,而是重定向到不存在或无法访问的 URL.
To reiterate: there is no direct redirection to chrome-error://chromewebdata
, but instead to a URL that doesn't exist or is not reachable.
检查您的代码是否会导致此导航(可能是重定向).检查 DevTools 中的 Network 选项卡非常有用,确保选中Preserve log".这应该可以说明到底发生了什么.
Check if your code causes this navigation (possibly a redirect). It is very useful to inspect the Network tab in DevTools, making sure that "Preserve log" is checked. This should give some indication about what exactly is happening.