Problems in volist
!
2018-06-13 17:20:37
0
3
1282

When offset="2" in volist in the video, why does the output start from 1 when key="$k"? ?

!

reply all(1)
无忌哥哥

The first index of the array is 0, and the second index is 1

  • reply Then why does the output start from 2 when the key is not set, that is, the default is $key? Shouldn’t the second one be 1?
    author 2018-06-14 21:04:22
  • reply My understanding: When the $key attribute is not set, it starts with array index 0 by default, and offset represents the array index; once $key is customized, the array index and offset are invalid, and the ordering is based on realistic concepts. Counting always starts from 1
    其铭 author 2020-06-04 10:44:20
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template