我正在尝试在我的 Web 应用程序中使用 Angular Ag-Grid。
我已经按照这些教程
问题/问题
我完全遵循了每一件事。甚至数据正在加载到网格中,但视图并不是很明显。这是我得到的(不是对齐,没有着色)

我尝试过的内容是通过 Google 和 Stack Overflow 进行广泛搜索。一些答案建议CSS没有正确加载(这是一个可靠的论点),但我仔细检查了我的导入语句,Component.css并尝试.css在index.html. .css我参考的文件存在并且参考也很好。
我的期望
代码
应用组件.html
<ag-grid-angular style="width: 500px; height: 500px;" class="ag-theme-balham" [rowData]="rowData"
[columnDefs]="columnDefs">
</ag-grid-angular>
Run Code Online (Sandbox Code Playgroud)
应用组件.ts
import { Component } from '@angular/core';
import { Grid } from 'ag-grid/main';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
title = 'Grid1';
columnDefs = [
{ headerName: "Make", field: "make" …Run Code Online (Sandbox Code Playgroud) 我有一个问题:多个线程可以具有相同的 thread_id 吗?(当然不是。)但我的代码是这样做的。这怎么可能?
#include<stdio.h>
#include<unistd.h>
#include<pthread.h>
#include<sys/types.h>
void* message(void* var){
int t = (int)var;
printf("\n%d- Hi I'm thread ID=%lu\n",t+1,(int unsigned long)pthread_self());
}
int main(void){
pthread_t threads[10];
int report[10];
for(int i=0;i<10;i++){
report[i] = pthread_create(&threads[i],NULL,message,(void*)i);
pthread_join(threads[i],NULL);
}
return 0;
}
Run Code Online (Sandbox Code Playgroud)
我在(Ubuntu 17.04)的代码显示了这个结果
1- Hi I'm thread ID=3076250432
2- Hi I'm thread ID=3076250432
3- Hi I'm thread ID=3076250432
4- Hi I'm thread ID=3076250432
5- Hi I'm thread ID=3076250432
6- Hi I'm thread ID=3076250432
7- Hi I'm thread ID=3076250432
8- Hi I'm thread ID=3076250432 …Run Code Online (Sandbox Code Playgroud)