【自用】微信小程序打印data中的值undefined

不得不说,用习惯了vue之后觉得微信开发者工具的语言真的难受。

解决办法:

错误写法:

console.log(this.xxxx)

正确写法:

console.log(this.data.xxxx)

猜你喜欢

转载自blog.csdn.net/qq_43768851/article/details/128166544
今日推荐