var state={\"totalAmount\":1,\"vendorId\":\"696\",\"merTradeNo\":\"7a5f8719\"}
结果
var jg=state.replace(new RegExp('\\\\','g'),"");
var state={\"totalAmount\":1,\"vendorId\":\"696\",\"merTradeNo\":\"7a5f8719\"}
var jg=state.replace(new RegExp('\\\\','g'),"");
本文标题:js中反斜杠的正则替换
本文链接:https://www.haomeiwen.com/subject/isqjfqtx.html
网友评论