今天遇到个问题,vue里面在methods中写个渲染方法,在渲染方法里又写了个this._render = ()=>{
...
this.xxx = 1;
...
}

然后用到requestAnimationFrame(this._render);

有人知道这样会出现什么效果吗?😉
展开
2