我正在尝试从 quickbase 中的表中检索值。
这就是我到目前为止所拥有的...... service.ts
public getNativeFields(){
let headers = new HttpHeaders().set("QB-Realm-Hostname", "xxxxxx.quickbase.com").set("Authorization", "QB-USER-TOKEN xxxxxx_xxx_xxxxxxxxxxxxxxxxxxxxxxxxx");
let requestBody = {
"from": this.someTableTableId,
"select": [6,7]
}
return this.httpClient.post(`${this.apiURL}/records/query?appId=${this.appId}`, requestBody, { headers })
}
在我的component.ts我有...
ngOnInit(): void {
let list= this.apiService.getNativeFields();
console.log("list is" );
console.log(list);
list.forEach(element=>{
this.nativeVersions.push(element);
})
console.log("native versions");
console.log(this.nativeVersions);
}
此日志返回
如何提取 {value:"1.0.0"} 和 {value:"1.0.5"}