From ecc354bc0dc4e0b1fb0fc3845da8f54c34bd7ed7 Mon Sep 17 00:00:00 2001 From: Lan Hui <1348141770@qq.com> Date: Tue, 2 Aug 2022 12:33:41 +0800 Subject: [PATCH] Refactor: use better function --- app/static/js/highlight.js | 3 +-- app/templates/userpage_get.html | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/static/js/highlight.js b/app/static/js/highlight.js index 625fdc0..1003918 100644 --- a/app/static/js/highlight.js +++ b/app/static/js/highlight.js @@ -71,14 +71,13 @@ function fillInWord2() { cancelHighlighting(); } -function ChangeHighlight() { +function toggleHighlighting() { if (isHighlight) { isHighlight = false; cancelHighlighting(); } else { isHighlight = true; highLight(); - } } diff --git a/app/templates/userpage_get.html b/app/templates/userpage_get.html index be503e6..9e3891b 100644 --- a/app/templates/userpage_get.html +++ b/app/templates/userpage_get.html @@ -38,7 +38,7 @@
阅读文章并回答问题