Textarea String으로 저장
Html Textarea에 있는 내용을 줄바꿈 까지 String으로 저장해 DB에 넣었다가나중에 불러오는 경우가 있다. 무조건적인 방법이 아니라 여러가지 방법중의 하나이다 예를들면 이런글을 DB에 넣고 싶다. // Client단이나 Server단 중 어디서 처리를 하든 자유 //textarea안에서 사용할 줄바꿈은 db에 저장할 때 치환을 해야한다 replaceAll이 없어 정규화로 대체 notice.content=notice.content.replace(/(?:\r\n|\r|\n)/g," "); //정규화를 통한 br태그를 textarea 안에서 사용할 \r\n으로 치환 this.selectedNotice.content = this.selectedNotice.content.replace(/ /g,"\r..
FrontEnd/Angular
2018. 8. 2. 16:56
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Redux
- data component module
- https://www.tistory.com/auth/logout/
- JavaScript
- data gird component
- react
- Python
- 페이스북 로그인
- Java
- data table component
- Spring
- Spring Boot
- jQuery
- angular router
- Router
- CSS
- data component
- 파이썬
- JPA
- React-router
- localStorage
- facebook login
- MySQL
- python3
- 파이썬3
- JSON
- data grid component
- mobx
- Angular
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
글 보관함