我添加了这个但是在使用Chrome DevTools检查元素时,点击功能没有显示!
这是我的代码:
<mat-table [dataSource]="dataSource1" class="mat-table">
<!-- Position Column -->
<ng-container matColumnDef="Objname">
<mat-header-cell *matHeaderCellDef> ObjName </mat-header-cell>
<mat-cell *matCellDef="let element"> {{element.objname}} </mat-cell>
</ng-container>
<!-- Weight Column -->
<ng-container matColumnDef="Successcount">
<mat-header-cell *matHeaderCellDef> Successcount </mat-header-cell>
<mat-cell *matCellDef="let element"> {{element.successcount}} </mat-cell>
</ng-container>
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
<mat-row (click)="getRecord(element.objname)" *matRowDef="let row; columns: displayedColumns;"></mat-row>
</mat-table>
Run Code Online (Sandbox Code Playgroud) TypeError:无法读取undefined的属性'fetch'
Run Code Online (Sandbox Code Playgroud)at node_modules/whatwg-fetch/fetch.js:4:8 at Object.<anonymous> (node_modules/whatwg-fetch/fetch.js:466:3) at Object.<anonymous> (node_modules/jest-expo/src/setup.js:97:348)
使用jest-expo运行测试时出错.如果有人有解决方案请分享.
如果有人搜索当前表显示空数据,我想添加“无记录消息”!
以下是angular js中示例材料表的链接 https://material.angular.io/components/table/examples
我在执行 forceRtl 时遇到了本机基本选项卡的问题。一切正常,但只有 native base 在初始加载时不显示任何内容。
所以我有一个临时解决方案
我很困惑如何将接口作为参数传递并设置为 http get , post as global
我在全局编写了所有 http post、get、put、delete 函数
public get_api(path: string, Interface) {
return this.http.get<Interface>(API_ENDPOINT + path);
}
Run Code Online (Sandbox Code Playgroud)
现在我想从另一个 .ts 文件传递接口
this.http_global.get_api('user',Interface).subscribe(.....=>);
Run Code Online (Sandbox Code Playgroud)
谁能帮忙!!!
提前致谢!!!!
javascript ×4
angular ×3
typescript ×3
react-native ×2
expo ×1
java ×1
jestjs ×1
native-base ×1
reactjs ×1