解决方法: 1. 在head标签中加入: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 2. 在编辑器中寻找设置编码格式,改为utf-8。