📅  最后修改于: 2022-03-11 15:04:12.028000             🧑  作者: Mango
//Removing all the single quotes from a string.
var outputstr= inputstring. replace(/'/g,'');
//Replacing all the single quotes with double quote in a string.
var outputstr= inputstring.replace(/'/g,'"');