填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

DebugElement

      
      interface DebugElement extends DebugNode {
  name: string
  properties: {...}
  attributes: {...}
  classes: {...}
  styles: {...}
  childNodes: DebugNode[]
  nativeElement: any
  children: DebugElement[]
  query(predicate: Predicate<DebugElement>): DebugElement
  queryAll(predicate: Predicate<DebugElement>): DebugElement[]
  queryAllNodes(predicate: Predicate<DebugNode>): DebugNode[]
  triggerEventHandler(eventName: string, eventObj: any): void

  // 继承自 core/DebugNode
  listeners: DebugEventListener[]
  parent: DebugElement | null
  nativeNode: any
  injector: Injector
  componentInstance: any
  context: any
  references: {...}
  providerTokens: any[]
}
    

属性

属性说明
name: string只读
properties: { [key: string]: any; }只读
attributes: { [key: string]: string | null; }只读
classes: { [key: string]: boolean; }只读
styles: { [key: string]: string | null; }只读
childNodes: DebugNode[]只读
nativeElement: any只读
children: DebugElement[]只读

方法

queryAll(predicate: Predicate<DebugElement>): DebugElement[]
      
      queryAll(predicate: Predicate<DebugElement>): DebugElement[]
    
参数
predicate Predicate
返回值

DebugElement[]

queryAllNodes(predicate: Predicate<DebugNode>): DebugNode[]
      
      queryAllNodes(predicate: Predicate<DebugNode>): DebugNode[]
    
参数
predicate Predicate
返回值

DebugNode[]

triggerEventHandler(eventName: string, eventObj: any): void
      
      triggerEventHandler(eventName: string, eventObj: any): void
    
参数
eventName string
eventObj any
返回值

void