Replace all backslashes with forward slashes
将所有反斜杠替换为正斜杠
The string to replace backslashes in. / 要替换反斜杠的字符串
The string with all backslashes replaced with forward slashes. / 替换所有反斜杠后的字符串
slash('foo\\bar') // => foo/bar Copy
slash('foo\\bar') // => foo/bar
Replace all backslashes with forward slashes
将所有反斜杠替换为正斜杠