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