jQuery에서 escape쓰지 마세요
jQuery ajax로 보낸 문자열중에 특수문자가 있을경우 모든 특수문자를 escape를 사용하지 말고
encodeURIComponent() 나 encodeURI() 를 적절히 사용해보세요~
console.log(encodeURIComponent('!@#$%^&*()'));
console.log(encodeURI('!@#$%^&*()'));
console.log(decodeURI(encodeURI로 처리된 문자열));
'개발 > jQuery' 카테고리의 다른 글
[jQuery]문자 깜박임 (0) | 2018.07.24 |
---|---|
[jQuery] jQuery 셀렉트박스 이전 선택(focus) (0) | 2018.06.27 |
jQuery 엔터키 (0) | 2018.06.26 |
jquery를 이용한 아이디 저장하기(쿠키사용) (0) | 2018.06.25 |
[jQuery] jQuery로 부모창 컨트롤 (0) | 2012.11.30 |