当我从Google文档(下面的代码片段)中复制/粘贴JSON-LD示例时,我在结构化数据测试工具中收到错误:
http://www.your-company-site.com(提供的所有值http://www.example.com/必须具有相同的域.)
为什么Google自己的文档示例会出错?
Google文档中的代码段:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Organization",
"url": "http://www.your-company-site.com",
"contactPoint": [{
"@type": "ContactPoint",
"telephone": "+1-401-555-1212",
"contactType": "customer service"
}]
}
</script>
Run Code Online (Sandbox Code Playgroud)