Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/466.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 从2019年3月起,window.location.href在chrome中被阻止_Javascript_Google Chrome - Fatal编程技术网

Javascript 从2019年3月起,window.location.href在chrome中被阻止

Javascript 从2019年3月起,window.location.href在chrome中被阻止,javascript,google-chrome,Javascript,Google Chrome,嘿,我经历过铬堵塞 window.location.href = window.location.assign 谨此致辞: coral_min.js?ver=10.1.0:2[Deprecation]document.registerElement是 已弃用,将于2019年3月左右在M73中移除。请使用 改为window.customElements.define。看见 更多 细节 有人知道重定向流量的不同方法吗?显然,在您试图重定向到的页面中有一个脚本,它调用函数document.regi

嘿,我经历过铬堵塞

window.location.href = 
window.location.assign
谨此致辞:

coral_min.js?ver=10.1.0:2[Deprecation]document.registerElement是 已弃用,将于2019年3月左右在M73中移除。请使用 改为window.customElements.define。看见 更多 细节


有人知道重定向流量的不同方法吗?

显然,在您试图重定向到的页面中有一个脚本,它调用函数
document.registerement
。重定向本身没有错误。

我认为错误消息与您的
window.location
内容没有任何关系。
window.location.href=window.location.assign
毫无意义。该错误消息似乎非常明显地指向
document.registerement
。作为这个问题的全部前提是错误的,很难知道还能说什么?@nickzoum啊,是的。在我发表评论时,格式编辑未到位。:)我不清楚你是如何读到那个反对的警告并得出结论的。我同意,这个问题的整个前提是错误的。