猿问

使用vue的时候报错,找不出错误在哪,哭

报错:"Argument 2 of EventTarget.removeEventListener is not an object."

断点到了绑定数据的那里就报错了。。。

完整提示如下:


columnNumber: 27264

fileName: "http://localhost:8080/LanSale/statics/libs/vue.min.js"

lineNumber: 6

message: "Argument 2 of EventTarget.removeEventListener is not an object."

stack: "bn@http://localhost:8080/LanSale/statics/libs/vue.min.js:6:27264\nK@http://localhost:8080/LanSale/statics/libs/vue.min.js:6:5666\n$n@http://localhost:8080/LanSale/statics/libs/vue.min.js:6:27391\nb@http://localhost:8080/LanSale/statics/libs/vue.min.js:8:2799\n_@http://localhost:8080/LanSale/statics/libs/vue.min.js:8:1997\nb@http://localhost:8080/LanSale/statics/libs/vue.min.js:8:2884\n_@http://localhost:8080/LanSale/statics/libs/vue.min.js:8:1997\nb@http://localhost:8080/LanSale/statics/libs/vue.min.js:8:2884\n_@http://localhost:8080/LanSale/statics/libs/vue.min.js:8:1997\nb@http://localhost:8080/LanSale/statics/libs/vue.min.js:8:2884\nEa</<@http://localhost:8080/LanSale/statics/libs/vue.min.js:8:4006\ne.prototype._update@http://localhost:8080/LanSale/statics/libs/vue.min.js:7:25022\nr@http://localhost:8080/LanSale/statics/libs/vue.min.js:6:7500\nho.prototype.get@http://localhost:8080/LanSale/statics/libs/vue.min.js:7:21395\nho.prototype.run@http://localhost:8080/LanSale/statics/libs/vue.min.js:7:22038\nde@http://localhost:8080/LanSale/statics/libs/vue.min.js:6:8898\nzi</</<@http://localhost:8080/LanSale/statics/libs/vue.min.js:7:17835\ne@http://localhost:8080/LanSale/statics/libs/vue.min.js:7:17294\n"

__proto__: Object { stack: "", … }

请大神帮忙T_T


偶然的你
浏览 2205回答 2
2回答

冉冉说

removeEventListener 第二个参数传的不对

函数式编程

你先看看是写了哪行代码之后出现了这个错误,把这部分代码贴出来。根据报错信息我估计错误是出在某个元素或者组件的事件绑定上。
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答