我这样试了下,window 的 capture click 是可以触发的喃<div class="wrapper"></div> <script> const wrapper = document.getElementsByClassName('wrapper')[0]; wrapper.addEventListener('click', (e) => { e.stopPropagation(); console.log('wrapper bubble', e); }, false) window.addEventListener('click', (e) => { console.log('window bubble', e); }, false) window.addEventListener('click', (e) => { console.log('window capture', e); }, true) </script>
我这样试了下,window 的 capture click 是可以触发的喃