我正在使用PrimeNG数据表。我在Angular中使用httpClient从JSON占位符获取一些模拟数据。它在我的控制台中显示为一个对象数组,但是Visual Studio Code错误表明它是一个对象。错误显示“type Object is not assignable to any[]”。table-layout.component.ts import { BrowserModule } from '@angular
我使用解析器从服务器获取数据 import {Resolve, ActivatedRoute} from "@angular/router";import {Injectable} from "@angular/core";
import {HttpClient, HttpRequest} from "@angular</