填寫這份《一分鐘調查》,幫我們(開發組)做得更好!去填寫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