-1
私は自分のコード内の別の関数の実行を停止したい、私のJSコードは次のようになります。jQueryは他の関数の実行を停止しますか?
私はすでに試した何<script>
$(document).ready(function() {
<?php if ($saveMethod) : ?>
$("#running").html('<b>Save</b>');
<?php else : ?>
$("#running").html('<b>Skip</b>');
<?php endif; ?>
$("#running").click(function() {
// tried to stop customRedirect();
return false;
});
<?php if ($redirectURL != '') : ?>
customRedirect (10, "timer", "<?= $redirectURL ?>");
<?php endif; ?>
});
</script>
:
$("#running").click(function() {
// tried to stop customRedirect();
return false;
});
私は、ユーザーがクリックした場合customRedirect
の実行を停止したいです#running
にあります。
PHPタグはどこですか? –
私はあなたが欲しいものを理解していません。 –
@ MiquelAl.Vicensユーザーが$( "#running")をクリックした後、customRedirect()の実行を停止したいとします。 –