我正在尝试实现代码以获取客户时事通讯的“促销”选项卡中的注释,并且我确实让它工作。但是,它仅在我重新加载“促销”选项卡或打开和关闭有问题的电子邮件后才显示注释。我尝试使用 ld+json 和 Microdata。两者都遇到同样的问题。
这是一个已知的问题?还是我做错了什么?
下面是我试过的代码:
<script type="application/ld+json">
[{
"@context": "http://schema.org/",
"@type": "Organization",
"logo": "https://www.website.com/images/logo.png"
},{
"@context": "http://schema.org/",
"@type": "DiscountOffer",
"description": "15% off",
"availabilityEnds": "2018-12-30T23:59:59-0100"
},{
"@context": "http://schema.org/",
"@type": "PromotionCard",
"image": "https://www.website.com/images/promotionbanner.jpg"
}]
</script>
这是我尝试过的微数据
<div itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="nameofthecompany"/>
<meta itemprop="url" content="https://www.website.nl/">
<meta itemprop="logo" content="https://www.website.com/images/logo.png" />
</div>
<div itemscope itemtype="http://schema.org/PromotionCard">
<meta itemprop="image" content="https://www.website.com/images/promotionbanner.jpg"/>
</div>
<div itemscope itemtype="http://schema.org/DiscountOffer">
<meta itemprop="description" content="15% off"/>
<meta itemprop="availabilityEnds" content="2018-12-30T23:59:59-0100"/>
</div>