Mini Program wepy framework assigns values to data data. What's the difference between this.$apply () and this.setData ({})?

for example: data = {

name: ""

}
methods = {

changeName(){
//this.$apply()
this.name = ""

}

changeName(){
    //this.setData()
    this.setData({
    name: ""
    })
}

}


wepy framework does not need this.setData ()

Menu