Translate

2015년 2월 20일 금요일

문자열 유니코드로 변환 유니코드를 문자로 변환

str = "100% Ok!";
txt = str.charCodeAt(3); // 문자열을 유니코드로
alert(txt)
c = String.fromCharCode(txt); // 유니코드를 문자열로
alert(c);

댓글 없음:

댓글 쓰기