赏一个 店小二 二维码 复制链接 在线VIP工具 TXT文本工具电脑版
运算符号:





小学生数学题生成器

 

Copyright © 2014 TXT文本处理工具 - 在线文本工具 All Rights Reserved
晋ICP备14006235号-16 晋公网安备 14108102000020号

执行时间: 0.010450124740601 seconds

`); const column1 = printWindow.document.getElementById("column1"); const column2 = printWindow.document.getElementById("column2"); const questions = document.querySelectorAll('.question'); let countColumn1 = 0; let countColumn2 = 0; questions.forEach((question, index) => { const column = index % 2 === 0 ? column1 : column2; const clonedQuestion = question.cloneNode(true); // Replace answer content with formatted answer const answerElement = clonedQuestion.querySelector('.answer'); const answerText = answerElement.textContent; answerElement.textContent = parseFloat(answerText).toFixed(2); column.appendChild(clonedQuestion); if (index % 2 === 0) { countColumn1++; } else { countColumn2++; } }); printWindow.document.close(); printWindow.print(); } function toggleAnswers() { const answers = document.querySelectorAll('.answer'); answers.forEach(answer => { answer.style.display = (answer.style.display === 'none' || answer.style.display === '') ? 'inline' : 'none'; }); }
\r\n