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

UrlSegmentGroup

Represents the parsed URL segment group.

查看"说明"...

      
      class UrlSegmentGroup {
  constructor(segments: UrlSegment[], children: { [key: string]: UrlSegmentGroup; })
  parent: UrlSegmentGroup | null
  segments: UrlSegment[]
  children: {...}
  numberOfChildren: number
  hasChildren(): boolean
  toString(): string
}
    

说明

See UrlTree for more information.

构造函数

constructor(segments: UrlSegment[], children: { [key: string]: UrlSegmentGroup; })
      
      constructor(segments: UrlSegment[], children: { [key: string]: UrlSegmentGroup; })
    
参数
segments UrlSegment[]

The URL segments of this group. See UrlSegment for more information

children object

The list of children of this group

属性

属性说明
parent: UrlSegmentGroup | null

The parent node in the url tree

segments: UrlSegment[] Declared in constructor.

The URL segments of this group. See UrlSegment for more information

children: { [key: string]: UrlSegmentGroup; } Declared in constructor.

The list of children of this group

numberOfChildren: number 只读

Number of child segments

方法

Whether the segment has child segments

hasChildren(): boolean
      
      hasChildren(): boolean
    
参数

没有参数。

返回值

boolean

toString(): string
      
      toString(): string
    
参数

没有参数。

返回值

string