实现方式 event.stopPropagation(); //停止事件冒泡 js 阻止冒泡 var clearsElement = this.arrayfrom(this.container.querySelectorAll('.clear-value')); clearsElement.forEach(function (v, i) { v.onclick = function (event) { event.stopPropagation(); //停止事件冒泡 } })