George Posted December 31, 2003 Report Share Posted December 31, 2003 existe alguma função q transforme cógido ASCII em um caractere? Quote Link to comment Share on other sites More sharing options...
0 André Gusmão Posted January 5, 2004 Report Share Posted January 5, 2004 Veja esse exemplo:<script>function char(codigo){ return String.fromCharCode(codigo);}</script>Aí basta chamar a função passando como parâmetro o código ASCII que o caracter será retornado.Ex.:var x = char(65);alert(x); // Será mostrado 'A'É isso aí Quote Link to comment Share on other sites More sharing options...
Question
George
existe alguma função q transforme cógido ASCII em um caractere?
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.