Javascript ~ get file extension

return filename.split('.').pop();


reference
http://stackoverflow.com/questions/190852/how-can-i-get-file-extensions-with-javascript

沒有留言:

發佈留言