From c113b5548e2ba1bb74d3eb86fa7f35ee1345c794 Mon Sep 17 00:00:00 2001 From: mtnobody <47474511+mtnobody@users.noreply.github.com> Date: Mon, 20 Dec 2021 19:24:30 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AD=A6=E4=B9=A0?= =?UTF-8?q?=E8=AE=A1=E6=97=B6=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 学习时间较长,增加计时功能 --- ...46\344\271\240\345\274\272\345\233\275.js" | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git "a/\345\255\246\344\271\240\345\274\272\345\233\275.js" "b/\345\255\246\344\271\240\345\274\272\345\233\275.js" index cc1fec05..396ddaae 100644 --- "a/\345\255\246\344\271\240\345\274\272\345\233\275.js" +++ "b/\345\255\246\344\271\240\345\274\272\345\233\275.js" @@ -80,6 +80,22 @@ function random_time(time) { return time + random(100, 1000); } +/** + * @description: 学习计时函数 + * @param: 学习时间 (秒数*1000) + * @return: null + */ +function counting_time(waiting_time) +{ + var seconds = parseInt(waiting_time) + for(var i=0;i Date: Mon, 20 Dec 2021 19:27:24 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AD=A6=E4=B9=A0?= =?UTF-8?q?=E8=AE=A1=E6=97=B6=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加学习计时函数 --- "\345\255\246\344\271\240\345\274\272\345\233\275.js" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/\345\255\246\344\271\240\345\274\272\345\233\275.js" "b/\345\255\246\344\271\240\345\274\272\345\233\275.js" index 396ddaae..dc7338b8 100644 --- "a/\345\255\246\344\271\240\345\274\272\345\233\275.js" +++ "b/\345\255\246\344\271\240\345\274\272\345\233\275.js" @@ -87,7 +87,7 @@ function random_time(time) { */ function counting_time(waiting_time) { - var seconds = parseInt(waiting_time) + var seconds = parseInt(waiting_time/1000) for(var i=0;i