Underscores and other symbols may not be recognized the same way.
2
另外,考虑一下使用连字符号替换下划线,微格式( Microformats )将连字符号作为标准的分割符号,不过某些特定的老版本浏览器在处理上可能有问题.你可以阅读一下 Underscores in class and ID Names (类和ID中的下划线)这边文章来了解更多信息.
Microformats use hyphens as a standard separator, and certain older browsers have a hard time with them. You can read more about this at Underscores in class and ID Names.
3
如果$字符后面不跟着一个左括号,字母或者一个下划线,$符号在文本字面值中就不会有麻烦。
If the $ character is not followed by a left brace, letter, or an underscore, the $ character remains unmolested in the text literal.