📌  相关文章
📜  js用双引号替换单引号 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:04:12.028000             🧑  作者: Mango

代码示例1
//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,'"');