Skip to content

格式

typescript
Path.GetExtension(path)

所属类: Path

描述

返回指定路径的扩展名。

参数

参数名类型描述
pathstring指定路径

返回值

类型描述
string扩展名字符串

代码示例