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

UrlSegmentGroup

表示已解析的 URL 段组。

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
}
    

说明

有关更多信息,请参见 UrlTree

See UrlTree for more information.

构造函数

      
      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[]声明在构造函数中

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

children: { [key: string]: UrlSegmentGroup; }声明在构造函数中

The list of children of this group

numberOfChildren: number只读

子段数

Number of child segments

方法

该网址段是否有子段

Whether the segment has child segments

      
      hasChildren(): boolean
    
参数

没有参数。

返回值

boolean

      
      toString(): string
    
参数

没有参数。

返回值

string