A service that can be used to get and add meta tags.
方法
|
---|
addTag(tag: MetaDefinition, forceCreation: boolean = false): HTMLMetaElement | null
addTag(tag: MetaDefinition, forceCreation: boolean = false): HTMLMetaElement | null
参数返回值HTMLMetaElement | null
|
|
---|
addTags(tags: MetaDefinition[], forceCreation: boolean = false): HTMLMetaElement[]
addTags(tags: MetaDefinition[], forceCreation: boolean = false): HTMLMetaElement[]
参数返回值HTMLMetaElement[]
|
|
---|
getTag(attrSelector: string): HTMLMetaElement | null
getTag(attrSelector: string): HTMLMetaElement | null
参数返回值HTMLMetaElement | null
|
|
---|
getTags(attrSelector: string): HTMLMetaElement[]
getTags(attrSelector: string): HTMLMetaElement[]
参数返回值HTMLMetaElement[]
|
|
---|
updateTag(tag: MetaDefinition, selector?: string): HTMLMetaElement | null
updateTag(tag: MetaDefinition, selector?: string): HTMLMetaElement | null
参数返回值HTMLMetaElement | null
|
|
---|
removeTag(attrSelector: string): void
removeTag(attrSelector: string): void
参数返回值void
|
|
---|
removeTagElement(meta: HTMLMetaElement): void
removeTagElement(meta: HTMLMetaElement): void
参数返回值void
|