下载
首先,确保timeInterval变量在startTimer函数外部声明,以便nextquestion函数可以访问它并调用clearInterval。 复制AI写代码[color=rgb(185, 189, 182) !important]1 [color=rgb(185, 189, 182) !important]2 | [color=rgb(185, 189, 182) !important]// 在全局作用域或适当的父作用域中声明 [color=rgb(185, 189, 182) !important]let timeIn
|
|