See Typechecking the response from the Angular docs for further information: ... TypeScript会正确地抱怨从HTTP返回的对象没有results属性.这是因为,当HttpClient将JSON响应解析为一个对象时,它不知道该对象是什么形状. ...TypeScript would correctly complain that the Object coming back from HTTP does not have a results property. That's because while HttpClient parsed the JSON response into an Object, it doesn't know what shape that object is. 这篇关于Angular 4-从Http到HttpClient-对象类型上不存在属性'someproperty'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!