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

时间:2019-09-19 01:09:39   收藏:0   阅读:1071

解决方法:

 

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

  v-bind:id="item.id"

  :id="item.id"

原文:https://www.cnblogs.com/XiaoYEBLog/p/11546343.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!