vue 把字符串的所有=替换成&&&的方法

//把字符串中所有=换成&&&
                let reg=new RegExp('=','g')//g代表全部
                let newMsg=JSON.stringify(msg).replace(reg,'&&&');
                console.log(newMsg)
原文地址:https://www.cnblogs.com/lizhao123/p/11465205.html