数据绑定模板问题,this.msg='newDate'之后,view中没有变化?

发布于 7 年前作者 liaojun9396 次浏览最后编辑 7 年前来自 ask

```    success:function(res){        console.log(res.data.status)        if(!res.data.status){          console.log(“该用户名已经被注册”);          this.msg = res.data.msg          console.log(this.msg);        }      }.bind(this),```*** 分割线,this.msg是可以打印的

{{msg}}

但是这里的msg没有变化?什么原因造成的

1 回复
jie05
jie051 楼5 年前

setData才改变view吧