From e9675ec8ee27257b6586ed5656a5cc1fda124bee Mon Sep 17 00:00:00 2001 From: Lan Hui <1348141770@qq.com> Date: Mon, 18 Jul 2022 12:14:31 +0800 Subject: [PATCH] Improve function name. --- app/static/js/word_operation.js | 2 +- app/templates/userpage_get.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/static/js/word_operation.js b/app/static/js/word_operation.js index b7d8a00..36a023b 100644 --- a/app/static/js/word_operation.js +++ b/app/static/js/word_operation.js @@ -30,7 +30,7 @@ function unfamiliar(index) { }); } -function del_word(index) { +function delete_word(index) { let username = $("#username").text(); let word = $("#word_" + index).text(); $.ajax({ diff --git a/app/templates/userpage_get.html b/app/templates/userpage_get.html index 9f3326f..d807b4e 100644 --- a/app/templates/userpage_get.html +++ b/app/templates/userpage_get.html @@ -67,7 +67,7 @@ ( {{ freq }} ) 熟悉 不熟悉 - 删除 + 删除
{% endfor %}