可抓取的ajax#!,我错过了这一点吗? [英] Crawlable ajax #!, did I miss the point?

查看:70
本文介绍了可抓取的ajax#!,我错过了这一点吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经阅读了如何使用#来运行谷歌机器人可以抓取他的ajax内容! (hashbang?)协议将HTMl传送到机器人。



然而,我无法想象ajax被索引。恕我直言,唯一可能需要的相关索引是HTML(容器页面)+ AJAX整体。



如果http://someexample.com#!value = top-卖出

I've read on how one could have his ajax content crawl-able by Google bot using the #! (hashbang?) protocol which delivers HTMl to the bot.

Yet, I couldn't figure the point of having ajax indexed. IMHO the only relevant indexing one might want is HTML (container page) + AJAX as a whole.

If http://someexample.com#!value=top-sell outputs

{ "value" : "carrot" }

并谷歌索引它,它对用户有什么好处?



它在HTML页面之外没有任何意义,如下所示:

and google index it, what good it is to the user?

It has no meaning outside of a HTML page which could looks like this:

[...]
<script src="item-handler.js" />
</head>
<body>
Our store best selling item is <output id="top-sell"></output>!
</body>
</html>







以下是我如何描绘#的每日用例! :



用户:在Google上搜索胡萝卜

Google:显示http://someexample.com#!value =结果中的顶级卖出

用户:点击链接

服务器/浏览器:渲染




Here's how I picture the every day use case of #!:

User: Searches "carrot" on Google
Google: Display http://someexample.com#!value=top-sell in the result
User: Clicks the link
Server/Browser: Renders

{ "value" : "carrot" }



用户:那是什么样的胡言乱语?!

用户:向网站管理员发送电子邮件:你太烂了!



我明确地不想做后者...


User: "What kind of gibberish is that?!"
User: Sends a email to web-master: "You suck!"

And I definitively don't want to do the latter...

推荐答案

这篇关于可抓取的ajax#!,我错过了这一点吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆