超自然的行为与Facebook页面 [英] Supernatural behaviour with a facebook page

查看:120
本文介绍了超自然的行为与Facebook页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用Facebook页面尝试一些东西。我做了以下:


  1. 创建了一个新的Facebook页面。

  2. 添加了3个文章:这是这个页面的第一个帖子,这是这个页面的第二个帖子,这是这个页面的第三个帖子。

  3. 我做了一个查看源代码

  4. 然后我点击ctrl + f并搜索嗨!这是这个的第一个帖子页面。

  5. 我发现它在一个跨度内。

但是奇怪的是是否有人在评论。现在如果这是被注释掉了,怎么被浏览器呈现?



为了进一步调查这个问题,我做了一个检查元素在文章中选择上述文字后。输出为:

 < span class =userContentdata-ft ={tn:K} > 

嗨!这是这个页面的第一个帖子。

< / span>

这些都没有评论!那么怎么会这样呢?有没有什么超自然的?(不能..)

解决方案

view source(ctrl-f)内容由浏览器加载。 检查元素显示了一些AJAX,java脚本处理等后的实际内容。



所以在这里没有魔术,你正在看这个页面的两个不同的状态。


I was trying something with facebook pages. I did the following:

  1. Created a new facebook page.
  2. Added 3 posts with the texts:"Hi! this is the first post of this page.","This is the second post of this page.","This is the third post of this page." respectively.
  3. I did a "view source"
  4. Then i clicked ctrl+f and searched for "Hi! this is the first post of this page."
  5. I found it inside a span.

But the strange thing about it was that it was under a comment.Now if that is commented out,how is it being rendered by the browser?

To further investigate the issue, I did an inspect element after selecting the above text in the post. Output was:

<span class="userContent" data-ft="{"tn":"K"}">

    Hi! this is the  first post of this page.

</span>

And these were not at all commented!! So how could that happen? Is there anything supernatural about it?(cant be..)

解决方案

"view source" (ctrl-f) is showing static content loaded by the browser. "inspect element" shows the actual content after some AJAX, java script processing etc.

So no "magic" in here, you are looking at two different states of this page.

这篇关于超自然的行为与Facebook页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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