interface PageLinkDescriptor {
    crossOrigin?: "anonymous" | "use-credentials";
    disabled?: boolean;
    hrefLang?: string;
    integrity?: string;
    media?: string;
    page: string;
    referrerPolicy?:
        | ""
        | "no-referrer"
        | "no-referrer-when-downgrade"
        | "same-origin"
        | "origin"
        | "strict-origin"
        | "origin-when-cross-origin"
        | "strict-origin-when-cross-origin"
        | "unsafe-url";
}

层级关系

  • Omit<HtmlLinkDescriptor,
        | "href"
        | "rel"
        | "type"
        | "sizes"
        | "imageSrcSet"
        | "imageSizes"
        | "as"
        | "color"
        | "title">
    • PageLinkDescriptor

属性

crossOrigin?: "anonymous" | "use-credentials"

元素如何处理跨域请求

disabled?: boolean

链接是否禁用

hrefLang?: string

链接资源的语言

integrity?: string

用于 Subresource Integrity 检查的完整性元数据

media?: string

适用的媒体: "screen", "print", "(max-width: 764px)"

page: string

要预加载的页面的绝对路径。

referrerPolicy?:
    | ""
    | "no-referrer"
    | "no-referrer-when-downgrade"
    | "same-origin"
    | "origin"
    | "strict-origin"
    | "origin-when-cross-origin"
    | "strict-origin-when-cross-origin"
    | "unsafe-url"

由元素发起的获取请求的引用策略