What does this [value] = false mean in the vue method?

< my-dialog: show-dialog= "isSignUP" @ close-dialog= "closeDialog ("isSignUP")" >
< / my-dialog >

methods: {

  openDialog (value) {
    this[value] = true;
  },
  closeDialog (value) {
    this[value] = false;
  }
}
What is the use of this [value] in

methods?

Dec.08,2021

this is the attribute of the object, that is, the value is not fixed. For example, passing an an is equivalent to this.an and passing something is equivalent to this.. What


members of access objects can be used in two ways

  

is another way for to access object properties . It has the same meaning as this.value = false . It is recommended to brush more rhino books or red treasure books, or MDN

.
Menu