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 seatunnel-web使用SQL组件时候后台报错,无法找到表格
  • ¥15 fpga自动售货机数码管(相关搜索:数字时钟)
  • ¥15 用前端向数据库插入数据,通过debug发现数据能走到后端,但是放行之后就会提示错误
  • ¥30 3天&7天&&15天&销量如何统计同一行
  • ¥30 帮我写一段可以读取LD2450数据并计算距离的Arduino代码
  • ¥15 C#调用python代码(python带有库)
  • ¥15 飞机曲面部件如机翼,壁板等具体的孔位模型
  • ¥15 vs2019中数据导出问题
  • ¥20 云服务Linux系统TCP-MSS值修改?
  • ¥20 关于#单片机#的问题:项目:使用模拟iic与ov2640通讯环境:F407问题:读取的ID号总是0xff,自己调了调发现在读从机数据时,SDA线上并未有信号变化(语言-c语言)