📌  相关文章
📜  jquery更改按钮点击功能 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:05.898000             🧑  作者: Mango

代码示例1
$("#click-button").on('click', firstClick)

function firstClick() {
    alert("First Clicked");
    $("#click-button").off('click').on('click', secondClick)
}

function secondClick() {
    alert("Second Clicked");
    $("#click-button").off('click').on('click', firstClick)
}