聯(lián)系官方銷售客服
1835022288
028-61286886
怎么樣判斷,當(dāng)收藏以后,就顯示 已收藏,取消收藏。
沒有收藏的時候 才會顯示 收藏
<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>
if($收藏){echo '已收藏';}else{echo '未收藏'}
或者是用手冊的
演示參考地址:http://www.18html.com/article/29390.html