Compare commits

..

5 Commits

Author SHA1 Message Date
包月琳 f40a968a17 删除 'Bug476-ZhangWeiHao-BaoYuelin' 2023-05-10 18:59:30 +08:00
包月琳 59a1fe607a 添加 'Bug476-ZhangWeiHao-BaoYuelin' 2023-05-10 18:55:48 +08:00
mrlan 43c719b6b2 Merge pull request 'Fix bug 501 - 特殊字符&加入生词库后删除按钮失效' (#81) from Bug501-Hui into master
Reviewed-on: http://121.4.94.30:3000/mrlan/EnglishPal/pulls/81
2023-01-31 16:45:50 +08:00
Hui Lan a1955341c6 Fix bug 501 - 特殊字符&加入生词库后删除按钮失效 2023-01-31 16:39:11 +08:00
mrlan 92a8b4a994 Lanhui-update-README2 (#80)
Co-authored-by: Lan Hui <1348141770@qq.com>
Reviewed-on: http://121.4.94.30:3000/mrlan/EnglishPal/pulls/80
Co-authored-by: mrlan <mrlan@noreply.121.4.94.30>
Co-committed-by: mrlan <mrlan@noreply.121.4.94.30>
2023-01-30 15:44:01 +08:00
1 changed files with 3 additions and 2 deletions

View File

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