如何限制button按钮的onclick事件

2025-05-07 03:30:11
推荐回答(1个)
回答1:

btn.onclick = function(){
    alert('第一次点击');
    btn.onclick = null;
};