Jquery 替换全部花括号

js:
var str="{aaa}123{aaa}";
str.replace(/\{aaa\}/g, "111");
posted on 2016-04-29 11:45  qinyahui  阅读(628)  评论(0编辑  收藏  举报