Ledger Nano X - The secure hardware wallet
SHARE
TWEET

[COD] Pegar Extensão em JS

DraKiNs Jul 22nd, 2011 303 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2.         // ===== [ Exemplo de Uso ] ==========
  3.         alert(getExtesionFile("Ola.safsa.safsa.fsa.fas..sfa.Te.ste.dll"));
  4.  
  5.         // === [ Função para pegar extensão de arquivos ] ====
  6.         function getExtesionFile(str)
  7.         {
  8.                 return str.substr(str.lastIndexOf('.'), str.lenght);
  9.         }
  10.  
  11. // Criado por Bruno da Silva
  12. // www.ips-team.blogspot.com
  13.  
  14. </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top