path.extension

path.extension

path.extension

功能

返回路径扩展名。

语法

参数

无。

返回值

类型说明
String扩展名;没有扩展名时返回空字符串。

代码示例

注意事项

  • 返回值不包含点号。