刚发现vscode打开utf-8 无BOM的文档,遇到中文就会乱码。
notepad++中将文档修改为有BOM则能显示正常。
测试内容如下:
const errorInfo = data.filter(ele => ele.result !== '成功');
``
刚发现vscode打开utf-8 无BOM的文档,遇到中文就会乱码。
notepad++中将文档修改为有BOM则能显示正常。
测试内容如下:
const errorInfo = data.filter(ele => ele.result !== '成功');
``