//for循環(huán)模板postItem?<block wx:for="{{postList}}" wx:for-item="item" wx:for-index="idx"><template is="postItem" data="{{...item}}"/></block>//template模板獲取for循環(huán)里的下標idx的值 ? ??<template name="postItem">? ? <text class="post-title">{{idx}}</text></template>//現(xiàn)在問題是模板里獲取不到for循環(huán)里的下標idx
微信小程序for循環(huán)模板template里面怎么得到for循環(huán)的下標index呢?
SoEasy_1
2018-02-05 22:54:23