模板的for循环中,如何获取序号?

想过用enumerate,但是在模板中会报错 Could not parse the remainder xxx;

后来搜到 forloop.counter,完美解决

参考:http://www.cnblogs.com/chenkeven/articles/9340961.html

相关文章:

  • 2022-12-23
  • 2021-06-16
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
猜你喜欢
  • 2021-07-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-30
相关资源
相似解决方案