2
我想使用JavaScript(jQuery)添加Facebook评论,以便能够自定义data-href
。我使用了以下代码,但没有出现在div col2
中。如何使用JavaScript显示Facebook评论?
$("#col2").html(
id+"<div class='fb-comments' data-href='http://127.0.0.1/GazaPlaces/' data-num-posts='2'"+
" data-width='500'></div>"
);
什么是解决方案?