Vue variables are assigned Chinese values, but the output is garbled. Solution

It’s very strange, the display is garbled. Let’s take a
Insert image description here
look at the code
Insert image description here
output. The output of the console is also garbled.
Insert image description here
This is because of the file encoding problem. You can see that the encoding I used is wrong.
Insert image description here
Change the encoding.
Insert image description here
Select UTF-8
Insert image description here
Save and rerun, and you will see the correct display!
Insert image description here

Guess you like

Origin blog.csdn.net/changyana/article/details/133135915