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.
我使用 jQuery Mobile 1.2 创建了一个简单的 webapp。现在我想知道在页面正文中使用 html 实体是否更好,或者我应该用 utf-8 字符集中的所有字符编写文本?两种方式都正确,但哪一种是通常的?
提前致谢!
UTF-8 应该是您的选择。更好、更安全、更现代。
仅将实体用于与您的 HTML 标记混淆的符号。像< > ...
< > ...
我会使用 UTF-8 字符,相信我我使用过 jquery mobile 并且使用 UTF-8 的文本比使用 HTML 更好