// 获取后缀 format(temp) { let index = temp.lastIndexOf('.') let format = temp.substring(index + 1) return format }