<!-- 保留关键字 *this 代表在 for 循环中的 item 本身 -->
<view wx:for="{{arr}}" wx:key="*this">
{{item}} -- {{index}}
</view>
<!-- 代表在 for 循环的 array 中 item 的某个 property,该 property 的值需要是列表中唯一的字符串或数字,且不能动态改变。 -->
<view wx:for="{{arr1}}" wx:key="id">
{{item.name}} -- {{index}}
</view>