<view v-for="(item,index) in bankitemsub[index].options" :key="index">
{{String.fromCharCode((65+1))}}{{index}}
</view>
<view v-for="(item,index) in bankitemsub[index].options" :key="index">
{{String.fromCharCode((index))}}{{index}}
</view>
<view v-for="(item,index) in bankitemsub[index].options" :key="index">
{{String.fromCharCode((65+index))}}{{index}}
</view>
运行结果
只有第一个能够运行出B0,B1,B2,B3,其余代码无法显示
2 个回复
DCloud_UNI_GSQ
按照你的例子写了一个,使用HBuilderX 2.8.11测试正常
你试试如仍有问题,提供一个较完整的工程,我试试你的
5***@qq.com
嘻嘻嘻