onShareAppMessage 中的this 指向undefined

发布于 6 年前作者 taojin17836 次浏览最后编辑 6 年前来自 ask
  • onShareAppMessage 中的this打印出来是undefined
  • 希望this能够获取到当前data
2 回复
lei01
lei011 楼6 年前

可以用 onShareAppMessage: function () {} 的写法

nxie
nxie2 楼4 年前

不是undefined