<input type="button" value="确定" id="stamp" onclick="stampBill()"> <script> //取stamp, var stamp = document.getElementById("stamp");//设置盖章按钮为不可用 //按钮变为不可点击 stamp.disabled=true; //按钮变为可以点击 stamp.disabled=false; </script>