js 单引号替换成双引号,双引号替换成单引号

str.replace(/"/g,"'");
str.replace(/'/g,'"');
posted @ 2020-06-16 17:26  小猿笔记  阅读(1217)  评论(0编辑  收藏  举报