从右向左修剪路径
0.1.0
_.log(_.trimPathRight("path/to/file.aep", 1));// 桌面日志记录 path/to_.log(_.trimPathRight("path/to/file.aep", 2));// 桌面日志记录 path_.log(_.trimPathRight("path/to/file.aep", 3));// 桌面日志记录空字符串 Copy
_.log(_.trimPathRight("path/to/file.aep", 1));// 桌面日志记录 path/to_.log(_.trimPathRight("path/to/file.aep", 2));// 桌面日志记录 path_.log(_.trimPathRight("path/to/file.aep", 3));// 桌面日志记录空字符串
从右向左修剪路径