在列表中我们经常会需要动态的索引值,那么就可以用到如下标签

[field:global.autoindex/]

 默认是从1开始,如果我们想从0或者从其他数开始如下:

[field:autoindex runphp='yes']@me=$GLOBALS['autoindex']-1;[/field:autoindex]

默认是从1,那么-1则是从0开始

相关文章:

  • 2021-05-09
  • 2021-12-26
  • 2021-06-18
  • 2021-06-12
  • 2022-12-23
  • 2021-06-03
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-04-18
  • 2022-12-23
  • 1970-01-01
  • 2022-12-23
  • 2021-06-16
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案