스크립트 replaceAll

0 views
Skip to first unread message

베시시

unread,
Aug 4, 2011, 8:51:56 PM8/4/11
to IBKSYSTEM
String.prototype.replaceAll = replaceAll;
function replaceAll(val1 ,val2){
var temp = this;
temp = temp.replace(new RegExp(val1,"g"),val2);
return temp;
}
Reply all
Reply to author
Forward
0 new messages