其他分享
首页 > 其他分享> > requesterror: Unclosed quotation mark after the character string ‘}‘ ‘.

requesterror: Unclosed quotation mark after the character string ‘}‘ ‘.

作者:互联网

MSSQLinsert failed,

JS a.replace(/[']/g,'`'); //全局替换

let a = "AAAA'BBBBB 'CCCC'"
let b = a.replace("'"," ") //只替换了第一个
let d = a.replace(/[']/g,'`'); //全局替换

console.log(b)   //"AAAA BBBBB 'CCCC'"
console.log(d)   // "AAAA`BBBBB `CCCC`"


    // let requestText = response.request.body.replace("'","''");  //request Consignee name with '
    let requestText = response.request.body.replace(/[']/g,'`');;  //request Consignee name with '

标签:CCCC,Unclosed,character,after,request,replace,AAAA,let,BBBBB
来源: https://blog.csdn.net/weixin_42481234/article/details/122768174