You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
在循环遍历的时候加个last,frist之类的快速定位判断,这样就更加方便了,嘿嘿!
例如:
{@each list as item, index, last}
{@if index===last}
the index is last, the value is ${item.prop}
{@/if}
{@/each}
The text was updated successfully, but these errors were encountered:
在循环遍历的时候加个last,frist之类的快速定位判断,这样就更加方便了,嘿嘿!
例如:
{@each list as item, index, last}
{@if index===last}
the index is last, the value is ${item.prop}
{@/if}
{@/each}
The text was updated successfully, but these errors were encountered: