点击量一般存储在 hits 字段中,在内容、商品或者自定义模型中都会自带这个字段。
常用调用
列表通用
{foreach $lists as $v}
点击量/阅读量:{$v['hits']}
{/foreach}文章模型详情页
{fun incrData('article',$jz['id'],'hits')}商品模型详情页
{fun incrData('product',$jz['id'],'hits')}自定义模型详情页
{fun incrD...
极致CMS网站hits点击量使用方法
点击量一般存储在 hits 字段中,在内容、商品或者自定义模型中都会自带这个字段。
列表通用
{foreach $lists as $v}
点击量/阅读量:{$v['hits']}
{/foreach}文章模型详情页
{fun incrData('article',$jz['id'],'hits')}商品模型详情页
{fun incrData('product',$jz['id'],'hits')}自定义模型详情页
{fun incrD...