//将按钮设为禁用 document.getElementById("btn").setAttribute("disabled",true); document.getElementById("btn").disabled=true;