Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有几个扩展 AbstractFormGrid 的网格。拥有一个对象(可能是网格或不是网格)如何检查该对象是否扩展了 AbstractFormGrid。我设法使用 Ext.getName(object) 或 object.self.getName() 获取对象类名称,但我无法获取“父”类。
该属性this.superclass将返回父类。
this.superclass
正如你提到的,这很有效:
Ext.getClass(object).superclass.self.getName()
更直接的方法是使用私有属性 $className:
object.superclass.$className
每个类都从 Ext.Base 继承这个属性
我正在创建一个主要使用 D3.js 的甘特图(链接到功能示例)。甘特图有垂直网格线来分隔每一天的列(下图中右侧的列),整体table有水平网格线来分隔每一行/项目。以下是生成图表的示例:
table
1 wordpress - 如何通过钩子wordpress在模板标题导航栏菜单部分添加页面链接/菜单项