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