MockPlatformLocation
Mock implementation of URL state.
      
      class MockPlatformLocation implements PlatformLocation {
  hostname
  protocol
  port
  pathname
  search
  hash
  state
  href: string
  url: string
  getBaseHrefFromDOM(): string
  onPopState(fn: LocationChangeListener): void
  onHashChange(fn: LocationChangeListener): void
  replaceState(state: any, title: string, newUrl: string): void
  pushState(state: any, title: string, newUrl: string): void
  forward(): void
  back(): void
  getState(): unknown
}
    属性
| 属性 | 说明 | 
|---|---|
 hostname | 只读 | 
 protocol | 只读 | 
 port | 只读 | 
 pathname | 只读 | 
 search | 只读 | 
 hash | 只读 | 
 state | 只读 | 
 href: string | 只读 | 
 url: string | 只读 | 
方法
      
      参数没有参数。 返回值
  | 
      
      参数没有参数。 返回值
  | 
      
      参数没有参数。 返回值
  | 
      
      参数没有参数。 返回值
  |