exportdefault{methods:{//方法1a(){setInterval(function(){this.b();//---不執(zhí)行報錯:this.b()isnotafunction---},1000)},//方法2b(){console.log('調(diào)用成功')}}}如何解決?
小白,請教各位大佬!js定時器中如何調(diào)用函數(shù)?
梵蒂岡之花
2019-10-10 18:02:56