var a = document.querySelector(".a");var b = document.querySelector(".b");function Student() { this.bbb();}function add(Student) { Student.prototype.bbb = function() { this.getName(); this.jiao(); console.log(this); }; Student.prototype.getName = function() { console.log(this); hh(a, "click", this, false); }; Student.prototype.jiao = function() { alert("汪汪汪"); };}function hh(dom, type, fn, capture) { dom.addEventListener(type, fn, capture);}add(Student);var c = new Student();我点击dom为什么没有响应
添加回答
举报
0/150
提交
取消

