扫码关注官方订阅号
这里想通过定时器改变这个i的值 不知道怎么改变
这里定义了为0
ang下面想改变i的值并没有用 刚接触vue 并不是很懂
走同样的路,发现不同的人生
你这个定时器 this 指向 也不对吧. 可以用 this.$set 文档上有
this的指向不对...let i = 0;let _this = this;
...// this.i = i;_this.i = i;...
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
你这个定时器 this 指向 也不对吧. 可以用 this.$set 文档上有
this的指向不对
...
let i = 0;
let _this = this;
...
// this.i = i;
_this.i = i;
...