Commit c2860694 by doszhang

dos

parent 70910a00
......@@ -139,7 +139,12 @@ function nextQuestion(e) {
if (nowAnswer !== '') {
let nowIndex = nowQuestionIndex;
answerArr[nowQuestionIndex - 1] = nowAnswer;
nowAnswer = '';
if (answerArr[nowQuestionIndex] !== undefined) {
nowAnswer = answerArr[nowQuestionIndex]
} else {
nowAnswer = '';
}
$('.question' + nowQuestionIndex + '-block').addClass('fadeoutleft');
setTimeout(function () {
$('.question' + nowIndex + '-block').removeClass('fadeoutleft').hide();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment