Home >Web Front-end >JS Tutorial >JS version to get the real length of the string and the string function to get the fixed length_javascript skills
The length of double-byte characters is automatically calculated as 2. When selecting characters, the length of single-byte characters is also taken. For example, 2 takes one Chinese character or two letters, and 1 takes one Chinese character or letter.