var value ="#1#1#1";
for(var i =1;i<50;i++){
var con = "#"+i;
if(value.indexOf(con)> -1){
value = value.replace(/con/g,'***');
}
}为什么全替换不行,单替换是可以的?