如何为使用meteor服务的页面设置编码?目前我的 Firefox 不断输出此警告:
The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must to be declared in the document or in the transfer protocol.
只需将您的编码设置为任意<head>
html 文件的部分:
<head>
<meta charset="UTF-8">
<title>Whatever</title>
</head>
来自 Meteor 的文档:
Meteor 应用程序中的 HTML 文件的处理方式有很大不同
来自服务器端框架。 Meteor 会扫描您的所有 HTML 文件
三个顶级元素的目录:<head>
, <body>
, and
<template>
。头部和身体部分分别连接
分成单个头部和身体,并传输到客户端
初始页面加载。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)