SOURCE

console 命令行工具 X clear

                    
>
console
let btn= document.getElementById('btn')
btn.onclick = () => {
 console.log(1)
}
<div id="btn">关闭</div>
#btn{
    width: 120px;
    height: 46px;
    line-height: 46px;
    background:#fff;
    text-align: center;
    border-radius: 7px;
    animation: ondis 2s step-end;
    user-select: none;
} 
#btn:active{
    color: #fff;
    background: #ccc;
    animation: none;
}
@keyframes ondis{
    0%{
        pointer-events: none;
    }
    100%{
        pointer-events: all;
    }
}