[英]Angular 5 how to handle HTML received from backend
我从后端接收到HTML(带有Facebook登录名),但是可观察的对象试图解析它,然后才有机会对其进行任何处理...我无法向Google解释我的问题,因此即使是专业术语我正在尝试做的事,将会有很大的帮助...
You can set responseType
in your request method 您可以在请求方法中设置
responseType
this.http.post(url, body, { responseType: 'text' });
By default responseType is json and Angular try to parse it 默认情况下responseType是json并且Angular尝试解析它
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.