[S클래스 천문] 5. 22. (일) 스포츠 정답지.com
문의주시는 분들께만
공지예정.
=====
=====
![[S클래스 천문] 5. 22. (일) 스포츠 정답지.com](https://thumb.named.net/normal/resize/origin/file/free/editor/2204/23acf8895271624ed8b1e5186a52cc98_FKVhvi2PNjJMzhsOfuDb.jpg)
준.비.중.
![[S클래스 천문] 5. 22. (일) 스포츠 정답지.com](https://thumb.named.net/normal/resize/origin/file/free/editor/2205/23acf8895271624ed8b1e5186a52cc98_Hiu3FASwFS9jNMvqrrwXwGwgtFow.jpg)
let lock_recomment = false;
function recommendArticle() {
if (lock_recomment) {
return;
}
lock_recomment = true;
jQuery.ajax({
type: "post",
url: "./recommend.ajax.php",
catche:false,
data: {bo_table:"free", wr_id:"10573542"},
dataType : "json",
success: function(res) {
lock_recomment = false;
alert(res.msg);
switch (res.code) {
case "success" :
$('#recommendButtonNew span').html(
parseInt($('#recommendButtonNew span').html()) + 1
);
$('.artc_info .count_reply span').html(
parseInt($('.artc_info .count_reply span').html()) + 1
);
break;
default :
return false;
break;
}
},
error: function(res) {
lock_recomment = false;
}
});
}
댓글 0