javascirpt 替换

场景:javascirpt轮换所有字符,默认方法只替换第一个

javascirpt替换所有字符,默认方法只替换第一个
temp.replace(/\,/g,"#");