preventDefault
preventDefault是阻止浏览器默认行为,阻止冒泡是stopPropagation
Event.prototype.stopPropagation = function () {}
重写stopPropagation应该能满足你的需求
2.1m questions
2.1m answers
60 comments
57.0k users