Typescript:错误TS1109:应为表达式

Typescript:错误TS1109:应为表达式,typescript,angular2-services,Typescript,Angular2 Services,这个错误出现在这个简单的代码中。请告诉我有什么办法。谢谢 取下该按钮。回国后 拆下。回国后 把这个还给我。有什么不对劲吗把这个还给我。有什么不对劲吗 getItems(){ return.this._http.get('http://localhost/api/items').map(res=>res.json()); }; getItems() { return this._http.get('http://localhost/api/items').map(

这个错误出现在这个简单的代码中。请告诉我有什么办法。谢谢

取下该按钮。回国后

拆下。回国后


把这个还给我。有什么不对劲吗把这个还给我。有什么不对劲吗
  getItems(){  
      return.this._http.get('http://localhost/api/items').map(res=>res.json());
  };
getItems() {  return this._http.get('http://localhost/api/items').map(res => res.json()) };