4 | |^5 |{{index}} {{it。警告wx:key={{index}} does not look like a。" />

警告wx:key={{index}} does not look like a

【警告wx:key={{index}} does not look like a】一、警告如下:
VM202:1 ./pages/base/base.wxml
wx:key="{{index}}" does not look like a valid key name (did you mean wx:key="index" ?)
2 |
3 |

警告wx:key={{index}} does not look like a

文章插图
3 | > 4 | |^5 |{{index}} {{item}}6 | 7 |
二、处理方法:
那我们就按照它的提示,把大括号,修改为双引号,或者单引号,即可
完美解决!
再回看官方文档:
语语法也确实是如此,双引号