Commit de892ecb by doszhang

dos

parent ff8fdfdd
...@@ -76,7 +76,7 @@ $(document).ready(function () { ...@@ -76,7 +76,7 @@ $(document).ready(function () {
function nextQuestion() { function nextQuestion() {
if (nowAnswer != '') { if (nowAnswer != '') {
answerArr.push(nowAnswer); answerArr[nowQuestionIndex] = nowAnswer;
nowAnswer = ''; nowAnswer = '';
} else { } else {
$('#notification_area').remove(); $('#notification_area').remove();
...@@ -95,7 +95,6 @@ function chooseAnswer(e) { ...@@ -95,7 +95,6 @@ function chooseAnswer(e) {
nowAnswer = $('.question' + nowQuestionIndex + '-block .answer').index(node); nowAnswer = $('.question' + nowQuestionIndex + '-block .answer').index(node);
node.find('div[class$=-active]').show(); node.find('div[class$=-active]').show();
} }
console.log('nowAnswer:' + nowAnswer);
} }
......
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