题解 | #文件扩展名#
文件扩展名
http://www.nowcoder.com/practice/01ca4c6aa14249c2911f89baba9dc023
1.substr() 2.substring() 3.slice()
``` <script>
const _getExFilename = (filename) => {
let index = filename.indexOf('.');
return filename.substring(index);
}
</script>