글
-
[React] 이벤트 바인딩 할 때 주의할 점카테고리 없음 2017. 2. 25. 13:59
위와 같이 작성해야한다. 아래와 같이 작성하면 동작하지 않는다. 혹은 onClick의 카멜표기법을 지키지 않고 onclick으로 작성할 경우 다음과 같은 에러를 콘솔창에서 볼 수 있다. 추가로 컴포넌트의 this를 이용하고 싶다면 이벤트 핸들러를 다음과 같이 등록해줘야한다. onClick={this.handleClick.bind(this)} 위와 같이 하지 않는다면 이벤트 핸들러 메소드에서 this를 참조할 경우 null이 들어있는 것을 확인할 수 있다.
-
[Node.js] mysql query errorLegacy/문제해결 2017. 1. 15. 01:30
C:\Users\jun\Documents\MEGA\Dev\nodejs\rest-board\node_modules\mysql\lib\protocol\Parser.js:78 throw err; // Rethrow non-MySQL errors ^ TypeError: this._callback.apply is not a function at Query.Sequence.end (C:\Users\jun\Documents\MEGA\Dev\nodejs\rest-board\node_modules\mysql\lib\protocol\sequences\Sequence.js:86:24) at Query.ErrorPacket (C:\Users\jun\Documents\MEGA\Dev\nodejs\rest-board\node_m..
-
express ejs에서 PJAX 사용시 header 및 footer 조건부 include하기Legacy/Node.js 2017. 1. 14. 21:12
라고 해주면 조건부로 include를 할 수 있다.그 이유는?위와 같이 PJAX 요청을 날릴 경우X-PJAX: true라는 헤더값이 request에 들어가 있기 때문에 구분할 수 있다.때문에 일반적인 요청에는 Header, Footer를 집어넣고, PJAX요청에는 내용만 가져오도록 할 수 있다. refhttp://pjax.herokuapp.com/https://github.com/defunkt/jquery-pjaxhttps://github.com/MoOx/pjaxhttps://ntotten.com/2012/04/09/building-super-fast-web-apps-with-pjax/ http://ejs.co/
-
Express의 미들웨어들Legacy/Node.js 2017. 1. 14. 01:49
참고 - [3판] 모던 웹을 위한 Node.js 프로그래밍 (윤인성) Express의 미들웨어들 - http://expressjs.com/en/resources/middleware.html 1. router 미들웨어 Express에 내장되어 있는 미들웨어로 별로 미들웨어라는 느낌을 받지 않고 사용할 수 있음.추가적인 모듈 설치 및 require 없이 app.get(), app.post() 등과 같은 메소드 호출만 필요함. // 모듈을 추출합니다. var express = require('express'); // 서버를 생성합니다. var app = express(); // 라우터를 설정합니다. app.get('/a', function (request, response) { response.send('Go..
-
[Spring] Current request is not of type [org.springframework.web.multipart.MultipartHttpServletRequest]:Legacy/문제해결 2016. 11. 6. 17:44
다음 수정 후 http://www.egovframe.go.kr/uss/olh/qna/QnaInqireCoUpdt.do?qaId=QA_00000000000013994&passwordConfirmAt= 메이븐에서 commons-io 추가 : https://mvnrepository.com/artifact/commons-io/commons-io/2.4
-
[CentOS]Owncloud 권한 문제Legacy/Server 2016. 9. 14. 00:25
과 클라우드 서버 구축 도중 문제 발생 Can't write into config directory!This can usually be fixed by giving the webserver write access to the config directory. semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/owncloud/config'semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/owncloud/apps'semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/owncloud/.htaccess'semanage fcontext -..
-
-