找到并替换 字符串中最后一个(不一定是末尾最后一个) 指定字符 console.log(v.sOpenNum.replace(/(.*)|/, '$1 = ').replace(/|/g,' + '));