js拆分字符串,去掉文件名后缀,获取文件名 电脑版发表于:2021/12/15 9:12 代码如下://获取文件名 fileName = file.name.substring(0, file.name.lastIndexOf("."));