首页 > 技术文章 > 获取后缀

cap-rq 2020-05-19 17:29 原文

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

 

推荐阅读