📅  最后修改于: 2022-03-11 15:03:16.748000             🧑  作者: Mango
const btn = document.getElementById("myBtn")
function myFunction() {
btn.disabled = true;
setTimeout(()=>{
btn.disabled = false;
console.log('Button Activated')}, 5000)
}