gpt4 book ai didi

javascript - 无法读取 null : Cant find source of it 的属性 'removeAttribute'

转载 作者:行者123 更新时间:2023-12-03 08:12:20 25 4
gpt4 key购买 nike

我在我的每个网站上一遍又一遍地遇到错误:

VM42958:5 Uncaught TypeError: Cannot read property 'removeAttribute' of null
(anonymous function) @ VM42958:5
(anonymous function) @ VM42958:20

不幸的是我找不到这个错误的来源。如果我打开相关的 JavaScript 行,我会发现以下内容:

VM42958
(function()
{
var style = document.getElementById("9mr7n8lmeyjxk84i17g5ws714i") ||
document.documentElement.shadowRoot.getElementById("9mr7n8lmeyjxk84i17g5ws714i");
style.removeAttribute("id");
Object.defineProperty(style, "disabled", {value: false, enumerable: true});
Object.defineProperty(style.sheet, "disabled", {value: false, enumerable: true});
var deleteRule = CSSStyleSheet.prototype.deleteRule;
CSSStyleSheet.prototype.deleteRule = function(index)
{
if (this != style.sheet)
deleteRule.call(this, index);
}
var removeRule = CSSStyleSheet.prototype.removeRule;
CSSStyleSheet.prototype.removeRule = function(index)
{
if (this != style.sheet)
removeRule.call(this, index);
}
})();

这不是我的代码,我不知道它来自哪里或在哪里使用。作为使用 Bootstrap 、jQuery 和 Chart.js 的库。

有人知道这部分代码还是有办法找到这个错误的来源。我的意思是直接出现它的那一行?

在这个 jsFiddle 中也会出现同样的错误,例如: jsFiddle

最佳答案

这里同样的问题。
出于某种原因,Chrome ADBlock(不是加号)是原因。

关于javascript - 无法读取 null : Cant find source of it 的属性 'removeAttribute',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38143879/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com