gpt4 book ai didi

utf-8 - 需要在 Google (Chrome) devtools 中将字符集设置为 UTF-8

转载 作者:行者123 更新时间:2023-12-01 02:44:01 25 4
gpt4 key购买 nike

有没有办法通过控制台在 Chrome devtools 中将字符集从 ISO-8859-1 更改为 UTF-8?

最佳答案

> var el = $('meta[charset="ISO-8859-1"]');
<- undefined
> el
<- <meta charset="ISO-8859-1">
> el.setAttribute('charset','UTF-8');
> el
<- <meta charset="UTF-8">

在元素面板上,您会看到属性值立即更新。

$() 是 DevTools 的 document.querySelector() 快捷方式。

关于utf-8 - 需要在 Google (Chrome) devtools 中将字符集设置为 UTF-8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32101090/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com