InterfaceICookieGetterOptions

获取 cookie 的选项

interface ICookieGetterOptions {
    decode?: ((content: string) => string);
    encode?: ((content: string | number | boolean) => string);
}

Properties

Properties

decode?: ((content: string) => string)

Cookie 名和值的解码方式,默认为 decodeURIComponent。

encode?: ((content: string | number | boolean) => string)

Cookie 名的编码方式,默认为 encodeURIComponent。