当前位置: 首页 > 工具软件 > bi-bind > 使用案例 >

报错Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead.

乐正锦
2023-12-01

uniapp 小程序报错:Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of

, use
.

代码为:

<view v-for="value in item.value" :key="value.id" @click="XXX" :id="{{value.key}}">

修改为:

<view v-for="value in item.value" :key="value.id" @click="XXX" :id="value.key">
 类似资料: