images/task/word/2021/02/27/c5d1e5aa1b4fa7bc5a9621d7edbff567.docx
例如截取.docx之前的字符串
var url = images/task/word/2021/02/27/c5d1e5aa1b4fa7bc5a9621d7edbff567.docx
var prefix= url.substring(0,url.lastIndexOf("."));
images/task/word/2021/02/27/c5d1e5aa1b4fa7bc5a9621d7edbff567.docx
例如截取.docx之前的字符串
var url = images/task/word/2021/02/27/c5d1e5aa1b4fa7bc5a9621d7edbff567.docx
var prefix= url.substring(0,url.lastIndexOf("."));