1
0
Fork 0

Use a better variable name.

Bug400-QiuZhonghui
Lan Hui 2022-07-18 12:03:39 +08:00
parent c264400794
commit 304f720779
1 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ function familiar(index) {
$.ajax({
type:"get",
url:"/" + username + "/" + word + "/familiar",
success:function(resp){
success:function(response){
let new_freq = freq - 1;
if(new_freq <1) {
$("#p_" + index).remove();
@ -23,7 +23,7 @@ function unfamiliar(index) {
$.ajax({
type:"get",
url:"/" + username + "/" + word + "/unfamiliar",
success:function(resp){
success:function(response){
let new_freq = parseInt(freq) + 1;
$("#freq_" + index).text(new_freq);
}
@ -36,7 +36,7 @@ function del_word(index) {
$.ajax({
type:"get",
url:"/" + username + "/" + word + "/del",
success:function(resp){
success:function(response){
$("#p_" + index).remove();
}
});