织梦DEDECMS怎么用JS方式调用评论总数

COS、CDN
document.writeln("共有 <?php  require(dirname(__FILE__)."/../include/config_base.php");  $db = new DedeSql(false);  $rs = $db->GetOne("SELECT postnum FROM dede_archives WHERE ID=&#39;{$aid}&#39;");  if(!is_array($rs)){  echo "0";  }else {  echo $rs[&#39;postnum&#39;];  }  ?>位网友发表了评论");

<script type="text/javascript" src="/plus/fedcount.php?aid={dede:field name=ID/}"></script>

COS、CDN
热门