解析url @Author: dyh @Date: 2019-10-17 10:44 @Description:

Hierarchy

  • UrlModel

Constructors

Properties

Methods

Constructors

Properties

protocol: string = ''
port: string | number = ''
host: string = ''
path: string = ''
href: string = ''
hash: string = ''
query: Partial<{
    [key: string]: string[] | string;
}> = {}

Methods

  • Parameters

    • template: string = '{protocol}{host}{port}{pathname}{params}{hash}'

    Returns string