编程语言
首页 > 编程语言> > Google机器人会从javascript document.write()索引文本吗?

Google机器人会从javascript document.write()索引文本吗?

作者:互联网

可以说我有这个:

<script type="text/javascript">
    var p = document.getElementById('cls');
    p.firstChild.nodeValue = 'Some interesting information';
</script>

<div id="cls"> </div>

那么,谷歌机器人会索引文本一些有趣的信息吗?

谢谢!

解决方法:

更新资料
SearchEngine watch最近提到Google机器人已被即兴阅读JavaScript,准确引用

it can now read and understand certain dynamic comments implemented
through AJAX and JavaScript. This includes Facebook comments left
through services like the Facebook social plugin.

标签:robots-txt,search,indexing,search-engine,javascript
来源: https://codeday.me/bug/20191102/1987825.html