利用事件冒泡,将事件写在外层;以达到简化程序的目的;
阻止事件冒泡:event.stopPropagation
阻止默认事件:event.preventDefault
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3