2013년 4월 24일 수요일

[ Javascript ] 문자열 자르기



문자열 자르기 샘플

source = "data1, data2, data3";
result = source.split(",");

document.write(result [0] + result [1] + result [2]);

댓글 없음:

댓글 쓰기