解决办法: 在页面头部添加:<meta http-equiv='Content-Type'' content='text/html; charset=“utf-8”> 注意里面的charset编码需要填写你网页对应的编码。