//把字符串中所有=换成&&&
                let reg=new RegExp('=','g')//g代表全部
                let newMsg=JSON.stringify(msg).replace(reg,'&&&');
                console.log(newMsg)

 

转载于:https://www.cnblogs.com/lizhao123/p/11465205.html

Logo

Vue社区为您提供最前沿的新闻资讯和知识内容

更多推荐