dongshi2141 2014-08-26 18:53
浏览 78
已采纳

当检索到相同数据时,AJAX是否会在浏览器中获取请求(js)和“正常”访问权限?

Forgive me for my confusing title, but I hope I can make myself clear on this...

I have a question about SEO and javascript.

I've read that GET requests do get indexed by google. Right?

If I have this code:

<html>
<body>
<div id="filter"></div>
<div id="products"></div>
</body>
</html>

I update the filter and the products-divs with javascript (puts products in there based on selected filter).

If I for example have a filter that is (from javascript) requesting (with AJAX / GET-request) adress http://domain/category-id/red and the result from ajax result is:

<div id="products">red product1 in category-id</div>
<div id="products">red product2 in category-id</div>
<div id="products">red product3 in category-id</div>
<div id="products">red product4 in category-id</div>

Would this be the same from a googles perspective (I believe it would because javascript does a get request to the same data)?

I type in `http://domain/category-id/red` 

in the browser and I'll get:

<html>
<body>
<div id="filter"></div>
<div id="products">
<div id="products">red product1 in category-id</div>
<div id="products">red product2 in category-id</div>
<div id="products">red product3 in category-id</div>
<div id="products">red product4 in category-id</div>
</div>
</body>
</html>

(Yes, I understand it might not be the best way to use javascript without having a fallback, but this is a question I would love if someone could clarify for me)

Or would it matter at all? I've just read that internal links arent that important!? (Is that really true?) but external are...

  • 写回答

2条回答 默认 最新

  • dongyuzhu2244 2014-08-26 18:56
    关注

    Google does process JavaScript now so this content should be indexed by them without issue. How the other search engines handle this is another question.

    As far as internal links vs external links., internal links are helpful for SEO. Their importance is as debatable as anything else, but they do help SEO. It's probably one of the reasons Wikipedia does so well. Their internal linking is as close to perfect as it gets.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 在获取boss直聘的聊天的时候只能获取到前40条聊天数据
  • ¥20 关于URL获取的参数,无法执行二选一查询
  • ¥15 液位控制,当液位超过高限时常开触点59闭合,直到液位低于低限时,断开
  • ¥15 marlin编译错误,如何解决?
  • ¥15 有偿四位数,节约算法和扫描算法
  • ¥15 VUE项目怎么运行,系统打不开
  • ¥50 pointpillars等目标检测算法怎么融合注意力机制
  • ¥20 Vs code Mac系统 PHP Debug调试环境配置
  • ¥60 大一项目课,微信小程序
  • ¥15 求视频摘要youtube和ovp数据集