[Ajax] ajax 기본 사용 법
Spring + mybatis + ajax javascript file (+) jquery.js 파일 필요 Colored By Color Scripter™ 1 2 3 4 5 6 7 8 9 10 11 $.ajax({ url : 'search.do', type : "post", dataType : "json", success : function(data) { console.log(data) }, error : function(data) { console.log("에러가 발생하였습니다.") } }) 줄 2 : 요청할 url 줄 4 : 반드시 json으로 작성 줄 5 : 요청 성공시 실행 줄 6 : 요청 실패시 실행 Controller Colored By Color Scripter™ 1 2 3 4 5 @Resp..
IT/JavaScript, jQuery, Ajax
2014. 12. 5. 13:48