我在搜索中有5个列表,我想根据搜索结果详细信息来更改或更新meta。 范例: 我得到的结果是苹果,然后我的元数据设置为“苹果”,如果我将列表更改为橙色,则我的元数据设置为“橙色”,依此类推。
我拥有可以在页面更改未更改为结果更改时更改元数据的代码
这是我当前的代码:
<update-title title="A new title"></update-title>
<update-meta charset="ISO-8859-1"></update-meta>
<update-meta http-equiv="Content-Language" content="es"></update-meta>
<update-meta name="description" content="A page specific description"></update-meta>
<update-meta property="og:title" content="Minions"></update-meta>
<update-meta itemprop="description" content="A page specific itemprop description"></update-meta>
<update-script content="structuredData" type="application/ld+json"></update-script>