자바스크립트를 이용하여 문자열 공백을 '-'로 바뀌어 주는 방법입니다.
const text = "codetogo saved me tons of time"; text.replace(/ /g, '-');
등록된 댓글이 없습니다.
코리아뉴스 2001 - , All right reserved. 더보기