일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Android
- pbkdf2-password
- MEAN stack
- OOP
- elemMatch
- instance
- Express
- memory structure
- iIntelliJ
- centos
- Git
- 다중 서버 명령
- Java
- proguard
- node
- 64k method
- MaridDB
- Mongoose
- react-native
- event-driven
- API테스트
- PBKDF2
- multidex
- Mongo
- rest-assured
- Linux
- Modulization
- ssh key
- Setup
- window
Archives
- Today
- Total
천줄코딩도 한 걸음부터
Node.js String.replace 문자열 변경 본문
var variableString = 'temp/aaa.jpg'; variableString = variableString.replace('temp', 'image'); console.log(variableString);
image/aaa.jpg
파일 위치 변경 로직을 만들다보니 문자열을 변경해야하는 상황이 발생했다.
방법은 자바와 같았는데 왜 이렇게 헤맸는지...
'Others' 카테고리의 다른 글
Node.js와 mongoose로 간단한 게시판 만들기 (0) | 2017.07.11 |
---|---|
Node.js move file 파일 이동 (0) | 2017.07.11 |
cmd or Terminal 명령어 css (0) | 2017.07.10 |
Node.js multiparty 이용해 File upload - ajax (2) | 2017.07.09 |
MongoDB find elemMatch projection option (0) | 2017.07.08 |