怎么样判断,当收藏以后,就显示 已收藏,取消收藏。
没有收藏的时候 才会显示 收藏
<a href="[removed]dr_module_favorite('{MOD_DIR}', '{$id}');" class="icon-btn">
<i class="fa fa-star"></i>
<div> 收藏 </div>
<span class="badge badge-danger" id="module_favorite_{$id}"> {intval($favorites)} </span>
</a>
{count action=table table=1_news_favorite uid=1 cid=1 return=mmm} {$mmm_count}演示参考地址:http://www.18html.com/article/29390.html