Explanation
1. The range of matching characters using a hyphen (-) is not limited to letters. Can also match a range of numbers.
2. A series of letters and numbers can be combined in a single character set. In the = character set, the hyphen (-) defines the range of characters to match.
Example
1 2 3 4 5 6 7 8 9 10 11 12 |
|
The above is the detailed content of How to use hyphens in javascript. For more information, please follow other related articles on the PHP Chinese website!