2017/07 썸네일형 리스트형 [Spring] Interceptor에서 Ajax요청 구분하기 # request Header의 'X-Requested-With'가 'XMLHttpRequest'인지 확인한다.if ("XMLHttpRequest".equals(request.getHeader("X-Requested-With"))) {...} 참고로 X-Requested-With의 접두사 'X'는 표준이 아니지만, jQuery등 대중성 있는 라이브러리들이이 헤더를 Ajax시 추가하여 전송하고 있다고 한다.참조 : http://mohwaproject.tistory.com/entry/Ajax-%EC%A0%84%EC%86%A1-%EA%B5%AC%EB%B6%84%ED%95%98%EA%B8%B0 더보기 [Bootstrap] tooltip js가 먹히지 않을 경우 # bootstrap tooltip사용 중 js를 이용하여 custom하는 방법이 먹히지 않아 애먹었다.element에 attribute로 박아버리니 원하는대로 동작했다.1csbootstrap tooltip javascript reference : http://www.w3schools.com/bootstrap/bootstrap_ref_js_tooltip.asp 더보기 [jQuery] $.inArray(value, array) - 배열의 값 유무 확인 # jquery $.inArray(value, array)배열에 값이있으면 return 해당 indexreturn 값이 없으면 -1 더보기 [JavaScript] JSON 배열 단순 정렬하기 12345function sortByKey(array, key){ array.sort(function(a, b){ return a[key] b[key] ? 1 : 0; })}Colored by Color Scriptercs 더보기 [IntelliJ] PermGen space 에러 https://stackoverflow.com/questions/8677831/tomcat-7-spring-app-intellij-idea-10-5-outofmemoryerror-permgen-space 더보기 이전 1 다음