在用ajax访问登录接口的时候出现了这个错误,查阅得到使用Ajax的Post需要添加 contentType: “application/x-www-form-urlencoded;charset=UTF-8”,的参数即可正常运行