Element dynamically binds title

clipboard.png
:titles

:titles

clipboard.png

clipboard.png


clipboard.png

does anyone know? wait online. Thank you!


instead of dynamic, it will be changed to a variable, and then the variable will be dealt with.

:title = "list"

data () {
  return {
    list: []
  }
},
created () {
  for (let i = 0; i < 10; iPP) {
    this.list.push({title: 'title' + i})
  }
}

titles is written into data, and then set this.titles when you need to change it

Menu