다음 스크립트에서 keith-wood Countdown을 사용하고 있습니다. 사용자가 재설정 버튼을 클릭하면키스 우드 재설정 카운트 다운
<script type="text/javascript" src="jquery.countdown.js"></script>
<script type="text/javascript">
$(function() {
$('#defaultCountdown').countdown({
until: +60,
format: 'yodhmS',
layout: '{y<}{yn}a, {y>}{o<}{on}m, {o>}{d<}{dn}g, {d>}{h<}{hn}o, {h>}{m<}{mn}m, {m>}{s<}{snn}s{s>}'
});
});
나는 카운트 다운을 다시 설정합니다. 다음 솔루션을 시도했지만 작동하지 않습니다. 다음과 같은 오류가 나타납니다. "알 수없는 알 수없는 명령 : 변경"
$(document).ready(function() {
$('#reset').click(function() {
$('#defaultCountdown').countdown('change', {until: +60});
});
});
</script>
<div id="defaultCountdown"></div>
<input type="button" id="reset" value="Reset" />
나를 도울 수있는 사람이 있습니까? 고맙습니다!
죄송합니다 - 마크의 솔루션 등장 나는 내 것을 게시했다. –