对象文字只能指定已知属性,而“按钮"在“设置"类型中不存在 [英] Object literal may only specify known properties, and 'buttons' does not exist in type 'Settings
本文介绍了对象文字只能指定已知属性,而“按钮"在“设置"类型中不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Angular 8和以下
,唯一的例外是
请帮助我解决这个问题.
解决方案
只需确保将 dtOptions
声明为 any
.
您可以在以下位置找到此评论: https://l-lin.github.io/angular-datatables/#/extensions/buttons
//必须声明为"any",而不是"DataTables.Settings"dtOptions:any = {};
I am using Angular 8 and following example from here but
and the exception is
Please help me solve this.
解决方案
Just make sure the dtOptions
is declared as any
.
You can find this comment on: https://l-lin.github.io/angular-datatables/#/extensions/buttons
// Must be declared as "any", not as "DataTables.Settings"
dtOptions: any = {};
这篇关于对象文字只能指定已知属性,而“按钮"在“设置"类型中不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文