|
Post by account_disabled on Aug 20, 2023 23:24:24 GMT -8
博客评论 不,你的名字不是“24小时预付现金发薪日贷款”,而。这就是你要做的。找到一个与您的利基相关、人们实际阅读的博客。找到最新的还没有太多评论的帖子。 如果您的网站是 么您使用的名称应该是示例名称。您的电子邮件地址应为Matt Cutts 表示Google 可以访问 JavaScript 和 AJAX 中的某些内容。有证据表明 Google 通过 Chrome 抓取网络,这可以解释 Google 如何执行 JavaScript 和 AJAX。 但问题不断出现:Google 可以执行 JavaScript 和 AJAX 吗?他们真的可以吗?这个问 购买电子邮件列表 题在 SEOmoz 的问答论坛以及其他网站管理员论坛中已经被问过很多次了。就我个人而言,我有几个客户(其中许多是在线营销人员和网络专业人士)半定期地问我这个问题。
所以答案是什么?Google 真的可以读取您放置在 JavaScript 中的内容吗?典型的响应(也是我的建议)是,虽然 Google 可以在 JavaScript 中索引某些内容,但真正重要的内容应该放在普通 HTML 中,以便您知道它可以被索引。虽然这是一个很棒的建议,但似乎并不能令一些提出这个问题的人满意。 了解 Google 真正能用 JavaScript 做什么的唯一方法是测试不同类型的 JavaScript 和 AJAX,然后查看 Google 索引了哪些内容。问题是你可以使用 AJAX 和 JavaScript 做很多事情;你的想象力是极限。我没有测试您可以执行的所有操作,而是测试了网站与内容交互时使用的一些基本脚本。组装包含测试内容的示例代码后,需要等待 Google 对内容建立索引,看看 Google 能够索引哪些内容。所有结果均于 2012 年 6 月 12 日提取。 方法开始简单 在 JavaScript 中,有几种将内容放入网页正文的基本方法。其中之一方法。该方法将一串文本直接写入网页文档。 当Google抓取的页面上直接使方法时,Google就能够对内容进行索引。这是 JavaScript 中最简单的方法之一(如果不是最简单的话),所以这应该不足为奇。 但是,在许多情况下,JavaScript(以及您放置在 JavaScript 中的内容)通过外部 JavaScript 文件包含在网页上。第二个测试文件具有相本,其中包含内容,但将代码和内容放在外部 JavaScript 文件中,然后将该文件链接到 Google 正在抓取的页面。 Google 确实对该测试页面建立了索引,但 Google 没有对外部文件中的内容建立索引。这次以及随后的测试似乎表明 Google 无法读取外部 JavaScript 文件中包含的内容。这确实有道理,因为内容不是 Google 抓取的文件的一部分。
|
|