wx.createSelectorQuery() 不支持在朋友圈调用?
发布于 6 年前 作者 guiyingluo 3625 次浏览 来自 官方Issues
小程序右上角分享朋友圈,从朋友圈进入小程序

wx.createSelectorQuery().select('#editor').context(function (res) {
 console.log(res); 
})
//打印结果
{contextIs: "", contextId: false, contextCanvasId: ""}
 没有 res.context 对象
2 回复

目前有问题的,支持的不完善,分享朋友圈进来的是一个单页模式

可以参考这篇:

https://developers.weixin.qq.com/community/develop/article/doc/0002227228c880aa75ba3511451813

回到顶部