AngularJSUrlCodec
一个 UrlCodec
,它使用 AngularJS 中的逻辑来序列化和解析 URL 和 URL 参数。
A UrlCodec
that uses logic from AngularJS to serialize and parse URLs and URL parameters.
class AngularJSUrlCodec implements UrlCodec {
encodePath(path: string): string
encodeSearch(search: string | { [k: string]: unknown; }): string
encodeHash(hash: string)
decodePath(path: string, html5Mode: boolean = true): string
decodeSearch(search: string)
decodeHash(hash: string)
normalize(pathOrHref: string, search?: { [k: string]: unknown; }, hash?: string, baseUrl?: string): string
areEqual(valA: string, valB: string)
parse(url: string, base?: string)
}