我想要取这里的值?
我的取值方法,
wx:for是遍历name了,那么下边显示就{{item}}即可
双重遍历这样写:
<view wx:for="{{items}}" wx:for-item="item" wx:key="index">
<block wx:for="{{item.name}}" wx:for-item="subitem" wx:key="index">
{{subitem}}
</block>
</view>
这个错误好低级 微信小程序官网就有说明
https://developers.weixin.qq.com/miniprogram/dev/reference/wxml/list.html 详情参考这个网址
index使用了外层for的值,循环name的时候重新定义index