[STS3] 댓글 기능(3)
resources 폴더 안에 있는 js폴더에 reply.js 파일 생성 후 작성 /** * */ console.log("Reply"); var replyService = (function(){ function add(reply, callback){ console.log("reply......"); $.ajax({ type : "post", url : reply.contextPath + "/replies/new", data : JSON.stringify(reply), contentType : "application/json; charset=utf-8", success : function(result, status, xhr) { if (callback) { callback(result); } }, error..
2024.04.23