我有具有相同 onclick 功能的按钮。我希望一键后禁用按钮。onclick 函数需要执行多个函数,所以我怎样才能做到这一点。
<input type="button" class="buttons" id="button2" value="2"
onclick="run()" />
下面是其中一个按钮的代码,在 run 函数中是另一个正在运行的函数。
function disablebutton(button){
this.disabled = true;
}