Javascript 无法读取属性';hasAttribute';空的
我对材料设计引导有问题,我用Javascript 无法读取属性';hasAttribute';空的,javascript,laravel,npm,mdbootstrap,Javascript,Laravel,Npm,Mdbootstrap,我对材料设计引导有问题,我用NPM添加了它,但当我在我的网站上时,我遇到了以下错误: Uncaught TypeError: Cannot read property 'hasAttribute' of null at r (app.js:19116) at Module.o.m.n (app.js:19116) at o (app.js:19116) at app.js:19116 at app.js:19116 at Object../node
NPM
添加了它,但当我在我的网站上时,我遇到了以下错误:
Uncaught TypeError: Cannot read property 'hasAttribute' of null
at r (app.js:19116)
at Module.o.m.n (app.js:19116)
at o (app.js:19116)
at app.js:19116
at app.js:19116
at Object../node_modules/mdb-ui-kit/js/mdb.min.js (app.js:19116)
at __webpack_require__ (app.js:19361)
at Object../resources/js/app.js (app.js:1845)
at __webpack_require__ (app.js:19361)
at app.js:19500
问题出在哪里:hasaAttribute(“数据mdb无jquery”)
。我不知道怎样才能纠正这个问题
谢谢你的回答 您能将代码块发送到使用此行的位置吗
无法读取null的属性“hasAttribute”
表示您正在执行类似于myVariable.hasAttribute(…)
的操作,但是myVariable
的值为null或未定义,因此没有可调用的函数。这个答案对您有帮助吗?这是另一个问题,但我最终发现了它,这是由于没有更新mdbYes的代码,我有一段mdb无法识别的代码,可能是由于从引导4切换到5?