Solution 2: String split method. function getFileExtension2(filename) { return filename.split('.').pop(); }.
確定! 回上一頁