<button onclick="funA(event)">Click me</button> function funA(event) { event.stopPropagation(); // 阻止事件冒泡 // 在这里可以执行其他操作 console.log('funA 被调用'); }