Post
EN

javascript replaceAll 쓰는법~

function replaced(str){ var data = str.replace(/>/gi,'>'); data = data.replace(/</gi,'<'); return data; }

/abc/gi, / /안에 글짜를 문자 끝까지 가면서 ‘>’ 바꿔준다 뭐 이런 내용인듯.

This article is licensed under CC BY 4.0 by the author.