Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在标题中指定了字符集,是否需要在 meta/head/html 中指定它?
你不需要。但这是礼貌的。
你不需要。我能想到的唯一例外是,如果您的文档可能会保存到磁盘以供以后使用并有望正常工作。如果是这样,那么在 HTML 中包含字符编码将是一个好主意。