Remove leading slash, if str starts with slash, it will be removed.
删除斜杆前缀,如果字符串以斜杠开头,则将删除。
The string to remove leading slash. / 要删除前缀的字符串
The string with leading slash. / 删除前缀后的字符串
removeLeadingSlash('/foo/bar') // => foo/bar Copy
removeLeadingSlash('/foo/bar') // => foo/bar
Remove leading slash, if str starts with slash, it will be removed.
删除斜杆前缀,如果字符串以斜杠开头,则将删除。