English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The solution is as follows:
Add echo "<meta http-equiv='Content-Type'' content='text/html; charset=utf-8'>";
This is the full content that the editor has brought to you to solve the problem of乱码 when alert() is directly used in the js file. I hope everyone will support and cheer for the tutorial~