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

构造函数

特性

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

方法

  • 参数

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

    返回 string