我在Firefox的web控制台(js选项卡)中随机遇到了这个问题。
它只是突然出现了,而且我无法将其与我所做的任何更改联系起来。
完整的错误信息如下:
The page was reloaded, because the character encoding declaration of the HTML document was not found when prescanning the first 1024 bytes of the file. The encoding declaration needs to be moved to be within the first 1024 bytes of the file.
或者是这个:
The character encoding declaration of the HTML document was not found when prescanning the first 1024 bytes of the file. When viewed in a differently-configured browser, this page will reload automatically. The encoding declaration needs to be moved to be within the first 1024 bytes of the file.
这个问题指向了这一行代码:
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8" />
对我来说,那个元标签没问题吗?帮帮我,因为我认为它会与其他事情冲突并引起问题。
克雷格