No próximo artigo nós iremos continuar daqui, vendo alguns métodos de construção de strings disponíveis em JavaScript e como nós podemos usá-los para manipular nossa string da forma como quisermos. Anterior Menu: First steps Próxima
In the next article we'll build on this, looking at some of the built-in methods available to strings in JavaScript and how we can use them to manipulate our strings into just the form we want.
Linguagens dinâmicas baseadas em strings, como JavaScript e SQL, também estão sujeitas a problemas de validação de entradas devido a caracteres com escape e à injeção de script.
Dynamic, string-based languages such as JavaScript and SQL are also subject to input validation problems due to escape characters and script injection.
em um outro post falei sobre a conversão "automática" de um número para string em uma concatenação em javascript.
in another post i talked about an "automatic" conversion of a number to string when concatenating a string in javascript.
Como verificar se uma string contém uma substring em JavaScript?
Se você está confuso sobre como verificar se uma string contém outra substring em JavaScript, então você chegou ao lugar certo.
If you are confused on how to check if one string contains another substring in JavaScript, then you have come to the right place.
Você pode chamar qualquer um dos métodos do objeto String em cima de uma string literal - JavaScript automaticamente converte a string literal em um objeto String temporário, chama o método, e então descarta o objeto String temporário.
You can call any of the methods of the String object on a string literal value-JavaScript automatically converts the string literal to a temporary String object, calls the method, then discards the temporary String object.
Os métodos de matriz e string Javascript modernos podem ser usados.
Array and string methods from modern JavaScript can be used.
Conținut posibil inadecvat
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.
Înregistrează-te pentru a accesa mai multe exemple