求大神帮忙把js代码转成jq的

2025-05-11 12:29:27
推荐回答(1个)
回答1:

function commentReply(pid,c){    
 var response = $('#comment-post');    
 $('#comment-pid').val(pid) ;     
 $('#cancel-reply').show();     
 c.parent().parent().append(response);
}

function cancelReply(){     
 var commentPlace = $('#comment-place');
 var response =  $('#comment-post');     
 $('#comment-pid').val(0);     
 $('#cancel-reply').hide();   
 commentPlace.append(response);
}