Beispiel 1: Bestimmte Anzahl von js-Zeichen
var str = "Hello Lewes";
var ch = 'e';
var count = str.split("e").length - 1;
console.log(count);
/*
Output: 3
*/
Beispiel 2: Wie erhalte ich die Anzahl der Buchstaben in Javascript?
//when use length for string this will be return the count of charactor
//in string
$("#about_me_textarea").val().length
Click to rate this post!
[Total: 0 Average: 0]