js replace in multi-line string

 

.replace(/{id}/g, '_' + counter);

 

 

 

posted @ 2014-04-29 13:58  zyip  阅读(343)  评论(0编辑  收藏  举报