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