어떻게 해결할 수있는 좋은 방법으로 오류 메시지를받을 수 있습니까? 오류 메시지 : timetotal이 정의되지 않았습니다.js가 정의되지 않은 오류
$(document).ready(function() {
if (typeof(timeleft) !== 'undefined') {
Chrono.update();
}
$('a.add_other_answer').click(function() {
addAnswer();
});
});
Chrono = {
warning: timetotal * 0.25,
critical: timetotal * 0.05,
update: function() {
...
...
우리는 좀 더 많은 코드가 필요,'timetotal'가 정의? – Olical
@ Wolfy87 : 그것은 틀림없는 것으로 보인다;) @lander : 어딘가에'timetotal'을 정의해야한다 ... –