var str = "男的\'女的\'老的\'少的";
str.replace(/'/g,'')

相关文章: