<!--Load scripts for Facebook scraper-->
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '154617751273927',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
};
(function() {
var e = document.createElement('script');
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());
评论中使用“刮刀”一词是什么意思?这看起来像一个异步函数,它是http://connect.facebook.net/en_US/all.js
我不确定这个 al.js 做了什么。附加到 fb-root 元素的结果。
这个异步函数有什么作用,为什么它被称为“scraper”?