티스토리 뷰

728x90
<script type="text/javascript">
String.prototype.replaceAll = function(searchStr, replaceStr) {
var temp = this;
while(temp.indexOf(searchStr) != -1) {
temp = temp.replace(searchStr, replaceStr);
}
return temp;
}
</script>