uniapp属性插值报错Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead.


解决方法:

 

因为vue 2.x不支持对属性使用插值{{}}的方式赋值,所以要使用v-bind指令(或简写“:”)来指定属性。

  • v-bind指令

  v-bind:id="item.id"

  • v-bind简写指令:
  :id="item.id"


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM