如下:获取abcd.txt文件的后缀名。
function getSuffix(file){ return file.slice(file.lastIndexOf(".") + 1,file.length); }