Compare commits

..

2 Commits

Author SHA1 Message Date
Lan Hui d67ccf4d71 Update README. 2023-01-30 15:41:15 +08:00
Lan Hui 9148d9a95c Remove .DS_Store (a Mac hidden file) 2023-01-30 15:16:33 +08:00
1 changed files with 2 additions and 3 deletions

View File

@ -47,7 +47,7 @@ function unfamiliar(theWord) {
function delete_word(theWord) {
let username = $("#username").text();
let word = theWord.replace('&', '&');
let word = $("#word_" + theWord).text();
$.ajax({
type:"GET",
url:"/" + username + "/" + word + "/del",
@ -104,7 +104,6 @@ function wordTemplate(word) {
*/
function removeWord(word) {
// 根据词频信息删除元素
word = word.replace('&', '&');
const element_to_remove = document.getElementById(`p_${word}`);
if (element_to_remove != null) {
element_to_remove.remove();