我想等created结束再执行mounted所以用了async和await但是发现这样好像没有起作用这是为什么?created(){this.test()},mounted(){console.log(2)},methods:{test2(){returnnewPromise((resolve,reject)=>{setTimeout(()=>{console.log(1)resolve()},200)})},asynctest(){awaitthis.test2()}}
慕村9548890
米琪卡哇伊
maxscore 和 minscore 的生命周期为多少
tomcat生命周期管理
servlet和JSP的生命周期有什么不同?
bean的生命周期与bean容器的生命周期
相关分类