path.normalize

path.normalize

path.normalize

功能

规范化路径文本,移除 . 和可静态抵消的 ..

语法

参数

无。

返回值

类型说明
String规范化后的路径文本。

代码示例

注意事项

  • 返回值使用 / 作为分隔符。