            appleTotal: appleTotal.value,
            appleKind: appleKind.selectedIndex
        }
    });
}
function pause(){
    $.ajax({
        url: "{{ url_for("pause") }}",
        type: "POST"
    });
}
function stop(){
    $.ajax({
        url: "{{ url_for("stop") }}",
        type: "POST"
    });
}
function stopLater(){
    value = Number(prompt("剩余的战斗数量").replaceAll(" ",""));
    if (isNaN(value)) {
        return;
    }
    $.ajax({
        url: "{{ url_for("stopLater") }}",
       