vant Toast组件时提示not defined的问题 ReferenceError: Toast is not defined
//定义的函数handleClick(){Toast('Toast')}会出现报错[Vue warn]: Error in v-on handler: "ReferenceError: Toast is not defined"将Toast 换为 this.$toasthandleClick(){this.$toast('Toast')}
·
//定义的函数
handleClick(){
Toast('Toast')
}
会出现报错
[Vue warn]: Error in v-on handler: "ReferenceError: Toast is not defined"
将Toast 换为 this.$toast
handleClick(){
this.$toast('Toast')
}
更多推荐
已为社区贡献11条内容
所有评论(0)