js调用vue中的方法

第一步:在mounted函数中定义window.a = this.a

第二步:在vue外直接通过window.a()方法调用

posted @ 2019-06-10 15:49  愤怒小鸟  阅读(2502)  评论(0编辑  收藏  举报