js 使用replace替换正反斜杠时间:2025-01-19 14:28:50正斜杠转成反斜杠 let a = 'https://editor/****/net' let b = a.replace(/\//g,'\\') // https:\\editor\****\net