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