写在mounted里面的函数的data无法传出来

是需要在mounted里面

const that = this

然后用that代替this就行

posted @ 2019-11-18 15:10  努力加油进步  阅读(62)  评论(0)    收藏  举报