<html>
<body>
<button id="myBtn">我的按钮</button>
<br><br>
<button onclick="disableBtn()">禁用"我的按钮"</button>
<button onclick="enableBtn()">启用"我的按钮"</button>
<script>
function disableBtn() {
document.getElementById("myBtn").disabled = true;
}
function enableBtn() {
document.getElementById("myBtn").disabled = false;
}
</script>
</body>
</html>