把data里的变量继承过来重新封装一下
let that = this;
this.rightAnswer = false;
setTimeout(function() {
that.rightAnswer = true;
}, 1500)
把data里的变量继承过来重新封装一下
let that = this;
this.rightAnswer = false;
setTimeout(function() {
that.rightAnswer = true;
}, 1500)
转载于:https://www.cnblogs.com/Man-Dream-Necessary/p/6373976.html