我正在使用history.pushState构建一个页面。 Google 可以使用 History.pushState 为我的页面建立索引吗?我应该如何做才能让 Google 建立索引?
最佳答案
如果您希望 Google 将您的网站编入索引,请查看 Google Search Console ( https://search.google.com/search-console/about )。一旦您验证自己拥有某个网站,Google Search Console 就会将该网站编入索引,并提供有关如何提高搜索结果评级的建议。
history.pushState()
与您的搜索结果评级无关。它只是在用户的浏览历史记录中添加一个条目。 (在 Chrome 上按 CTRL+H 可查看浏览历史记录)
关于javascript - 如何让 Google 使用 History.pushState 索引我的页面?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60344366/