cms
模板引擎标签语法

小说自定义筛选数据

更新时间:2024-05-12

  1. 用法示例
  2. 点此复制
    <getNovelFilterList name="$List" tid="$.Q.cate_id" >
    	<foreach name="$item" index="$index" data="$List.List">
    		<li index="{{$index}}">{{$item.Name}}</li>
    	</foreach>
    </getNovelFilterList>
  3. 标签参数
  4. 参数说明
    字段名 字段类型 字段说明 是否必要 默认值
    name string 变量名 false $List
    tid int64 一级小说分类ID true
  5. 响应结果
  6. 200 模板渲染返回

    响应参数 响应示例

    响应参数
    字段名 字段类型 字段说明 是否必要 默认值
    Cates slice 分类 true
    Id int64 主键id false
    Name string 名称 true
    Labels slice 标签 true
    Id int64 主键id false
    Name string 名称 true
    words slice 字数 true
    Id int64 主键id false
    Name string 名称 true
    点此复制
    {
    	"Cates": Null,
    	"Labels": Null,
    	"Words": Null
    }